Hi!

I have a webservice setup that has 4 web.config files,
<environment>.Web..config. One for each environment. I have made a GUI that
lets the user choose which file he wants and have stored the resulting
filename in a variable called SETUP_CONFIGFILE. I tried making a Custom
Action that copies the <environment>.Web.Config file to Web.config but I got
an error saying "Insufficent privileges" when accessing INSTALLLOCATION.

Snippets from WiX-file:
    <CustomAction Id="CopyCorrectConfig" BinaryKey="IISCA"
DllEntry="CopyCorrectConfig" Execute="immediate" Return="check" />
    <InstallExecuteSequence>
      <Custom Action="CopyCorrectConfig" After="InstallFinalize"
Overridable="yes">NOT Installed</Custom>
    </InstallExecuteSequence>

Is there a better way of doing this? My goal is to have a single setup lets
the user choose a config file for the environment he is installing in. The
config files are pre-generated so I don't want to modify them during
installation.

-Christer
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to