Editing the setup project script

S

Sathyaish

I've written an Add-in for MS Outlook and in Visual Studio .NET 2003, I
also created a setup project to install the add-in. It all works well.

When the user double-clicks on the .msi file to launch the setup,
there's this choice of having the application installed "Just for me"
or for "Everyone" using that computer. I noticed that even when the
user selects "Everyone", the setup script writes the entries for
registering the Add-in with outlook in the Current User hive of the
person who installed it. Ideally, it should be doing that in the Local
Machine hive because it is to apply to every user.

I've searched the setup project files, but I do not see any property
that suggests the registry key where the Add-in will be registered. I
know and I look at the keys manually under
\Software\Microsoft\Office\Outlook\Add-ins.

My question is, is there a way I can edit, or for a start even view the
setup script that the project relies on; the script that has in it
somewhere that if the user selects the "Everyone" option, go to the
registry and do some stuff inside some keys?
 
K

Ken Tucker [MVP]

Hi,

You need orca.exe to edit the setup msi. Open the setup msi to
change the FolderForm_AllUsers property to ALL. Orca is part of the windows
installer sdk.

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

Ken
-------------------
I've written an Add-in for MS Outlook and in Visual Studio .NET 2003, I
also created a setup project to install the add-in. It all works well.

When the user double-clicks on the .msi file to launch the setup,
there's this choice of having the application installed "Just for me"
or for "Everyone" using that computer. I noticed that even when the
user selects "Everyone", the setup script writes the entries for
registering the Add-in with outlook in the Current User hive of the
person who installed it. Ideally, it should be doing that in the Local
Machine hive because it is to apply to every user.

I've searched the setup project files, but I do not see any property
that suggests the registry key where the Add-in will be registered. I
know and I look at the keys manually under
\Software\Microsoft\Office\Outlook\Add-ins.

My question is, is there a way I can edit, or for a start even view the
setup script that the project relies on; the script that has in it
somewhere that if the user selects the "Everyone" option, go to the
registry and do some stuff inside some keys?
 
S

Sathyaish

Thanks a bunch, Ken. Even though I used the Registry Editor within the
VS.NET 2003 IDE (I eventually found it), ocra.exe will be extremely
useful for me in the future. I just learnt something new.

Thanks!
 

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