This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: LaunchAppAndWait - Encrypt Web.config file.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 25, 2010
09:56 PM
LaunchAppAndWait - Encrypt Web.config file.
if (LaunchAppAndWait("%WinDir%\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_regiis", "-pe \"connectionStrings\" -app \"//ERA8\" -prov \"DataProtectionConfigurationProvider\"", WAIT) < 0) then
MessageBox ("Failed to encrypt web.config",SEVERE);
endif;
The above code should run:
LaunchAppAndWait("%WinDir%\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_regiis"
With the following command line parameters:
pe \"connectionStrings\" -app \"//ERA8\" -prov \"DataProtectionConfigurationProvider\"
But every time the install runs this .... (OnFirstUIAfter) ... the result is -1
and it doesn't work..
If i run this app with the command line params manually - it works fine.
Any ideas? has anyone come across this issue?
MessageBox ("Failed to encrypt web.config",SEVERE);
endif;
The above code should run:
LaunchAppAndWait("%WinDir%\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_regiis"
With the following command line parameters:
pe \"connectionStrings\" -app \"//ERA8\" -prov \"DataProtectionConfigurationProvider\"
But every time the install runs this .... (OnFirstUIAfter) ... the result is -1
and it doesn't work..
If i run this app with the command line params manually - it works fine.
Any ideas? has anyone come across this issue?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 26, 2010
03:58 PM
For a start, LaunchAppAndWait might not like %WINDIR% inside the string; perhaps start the argument with WINDIR ^ "Microsoft.NET\\etc."? You might also want to include the .exe extension on the executable argument.