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
- :
- Error 1722 on CA
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
‎Aug 05, 2008
12:05 PM
Error 1722 on CA
I have a Custom Action that is giving me a serious headache...
Working Directory: SystemFolder
Filename & Command Line:
cscript.exe //nologo %windir%\System32\iiscnfg.vbs /import /f [$WebFiles]Utility\WebServerSetup\apppool.xml /sp /lm/W3SVC/AppPools/MySiteAppPool /dp /lm/W3SVC/AppPools/MySiteAppPool /children /inherited
Return Processing: Synchronous (Check exit code)
In-Script Execution: Immediate Execution
Error 1722. There is a problem with this Windows
Installer package. A program run as part of the setup
did not finish as expected. Contact your support
personnel or package vendor. Action CreateAppPool,
location: ...\apppool.xml /sp /lm/W3SVC/AppPools/M...
I have a feeling that it has to do with the Filename & Command Line formatting, but I'm not sure how to fix it.
Any ideas?
Thanks,
Joshua Foulk
Working Directory: SystemFolder
Filename & Command Line:
cscript.exe //nologo %windir%\System32\iiscnfg.vbs /import /f [$WebFiles]Utility\WebServerSetup\apppool.xml /sp /lm/W3SVC/AppPools/MySiteAppPool /dp /lm/W3SVC/AppPools/MySiteAppPool /children /inherited
Return Processing: Synchronous (Check exit code)
In-Script Execution: Immediate Execution
Error 1722. There is a problem with this Windows
Installer package. A program run as part of the setup
did not finish as expected. Contact your support
personnel or package vendor. Action CreateAppPool,
location: ...\apppool.xml /sp /lm/W3SVC/AppPools/M...
I have a feeling that it has to do with the Filename & Command Line formatting, but I'm not sure how to fix it.
Any ideas?
Thanks,
Joshua Foulk
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2008
04:34 PM
MSI error 1722 generally means an EXE returned a nonzero exit code; does anything change if you change the action's settings to ignore the exit code?
A couple of other things: is the double slash in //nologo intentional? Could the destination represented by [$WebFiles] contain any spaces and need surrounding quotation marks? And if that action makes system changes, it might be better for deferred execution.
A couple of other things: is the double slash in //nologo intentional? Could the destination represented by [$WebFiles] contain any spaces and need surrounding quotation marks? And if that action makes system changes, it might be better for deferred execution.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 11, 2010
09:16 AM
So if I am registering a DLL (via regsvr32) and it returns a 3, how can I modify InstallShield to handle this code and/or display a message? Can't really figure that out looking at the CA. Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 17, 2010
09:38 AM
if it's a vbscript CA, then why not just reinterpret the return value from regsvr32.exe and return 0 if successful? Alternatively, you could try to set a property from within the vb script to indicate the exit state. then you can conditionalize further actions using that property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 01, 2010
09:19 AM
Good information. But it's not a VBScript CA. Just adding a custom action that calls regSvr32 on a specific file.