CreateIntance of MS word in safe mode

B

birinets

I need to use Word Automation in separate instance without any addins,
templates, macros, etc. Same thing like to run Word with command line
like "winwrod /a" or "winword /Automation /Safe"

What was done before, to create Word object, I added "/Safe"
"HKEY_CLASSES_ROOT\CLSID\{000209FE-0000-0000-
C000-000000000046}\LocalServer32\LocalServer32" after
"..Winword.exe /
Automation", and now word created in safe mode but on same PC Winword
can start to repair and reinstall.

If someone have some knowledge about this problem or know other way
how to create a clearer word object in separate instance please inform
me.

Beast Regards.
 
C

Cindy M.

I need to use Word Automation in separate instance without any addins,
templates, macros, etc. Same thing like to run Word with command line
like "winwrod /a" or "winword /Automation /Safe"

What was done before, to create Word object, I added "/Safe"
"HKEY_CLASSES_ROOT\CLSID\{000209FE-0000-0000-
C000-000000000046}\LocalServer32\LocalServer32" after
"..Winword.exe /
Automation", and now word created in safe mode but on same PC Winword
can start to repair and reinstall.

If someone have some knowledge about this problem or know other way
how to create a clearer word object in separate instance please inform
me.
Which programming language are you using?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
B

birinets

Which programming language are you using?

Cindy Meister
INTER-Solutions, Switzerlandhttp://homepage.swissonline.ch/cindymeister(last update Jun 17 2005)http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)

C++
 
C

Cindy M.

I need to use Word Automation in separate instance without any addins,
OK, I don't know that language. But in the classic VB world I'd use Shell to start the application, with the command-line
switches, in this case probably /a /n. I'm pretty sure Shell must derive from something in the Windows API? Just ask in a
group that supports C++ what to use in order to "shell" a program...

There's no way within the object model to specify this. Best you can do, once the program is running, is to unload all add-
ins (both native Word and COM). And in order to not use the Normal.dot you'd have to re-name that file before startinng Word.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :)
 
B

birinets

OK, I don't know that language. But in the classic VB world I'd use Shellto start the application, with the command-line
switches, in this case probably /a /n. I'm pretty sure Shell must derive from something in the Windows API? Just ask in a
group that supports C++ what to use in order to "shell" a program...

There's no way within the object model to specify this. Best you can do, once the program is running, is to unload all add-
ins (both nativeWordand COM). And in order to not use the Normal.dot you'd have to re-name that file before startinngWord.

Cindy Meister
INTER-Solutions, Switzerlandhttp://homepage.swissonline.ch/cindymeister(last update Jun 17 2005)http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question orreply in the newsgroup and not by e-mail :)

The problem happens if Word is already started and I am trying to
start the new instance of Word. When I am starting the new instance of
Word, it loads *.dot from startup directory and message appears "Open
as read only..." for this *.dot. So, starting Word first and then
disable add-ins is impossible, because Word is already started.Also I
can't rename Normal.dot because of the same reason.
 
C

Cindy M.

The problem happens if Word is already started and I am trying to
start the new instance of Word. When I am starting the new instance of
Word, it loads *.dot from startup directory and message appears "Open
as read only..." for this *.dot. So, starting Word first and then
disable add-ins is impossible, because Word is already started.Also I
can't rename Normal.dot because of the same reason.
The /a switch should start Word in Safe Mode, which means it shouldn't
be trying to load *any* add-in templates, also not Normal.dot. Did you
include that switch?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top