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: Very simple CA returning error code 3
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
‎Jan 09, 2008
05:41 PM
Very simple CA returning error code 3
I have a very simple custom action (that calls an InstallScript function) that is practically driving me nuts by returning error code 3 (as noted in the MSI logs) and rolling back the entire installation.
Here is the function:
export prototype EnableIIS();
function EnableIIS()
begin
if (SYSINFO.WINNT.bWinNT) then
LaunchApplication(WINSYSDIR ^ "sc.exe", "config W3SVC start= auto", "", SW_HIDE, INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_SHOW_HOURGLASS | LAAW_OPTION_HIDDEN);
endif;
end;
As you can see all I am doing is enabling IIS if the installation is running under Windows XP and family. Please note that this is actually failing on Vista! which makes the problem even more weirder. (I haven't checked this on XP yet)
I have a custom action setup to call this function like so:
Return Processing: Synchronous (check exit code)
In-Script execution: Immediate Execution
Execution Scheduling: Execute only once
Install Exec Sequence: After InstallValidate
Install Exec Condition: REMOVE<>"ALL"
MSI type number: 65792
The log notes that my custom action returned 3 (which apparently is failure) and the installation aborts.
What am i doing wrong?
Here is the function:
export prototype EnableIIS();
function EnableIIS()
begin
if (SYSINFO.WINNT.bWinNT) then
LaunchApplication(WINSYSDIR ^ "sc.exe", "config W3SVC start= auto", "", SW_HIDE, INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_SHOW_HOURGLASS | LAAW_OPTION_HIDDEN);
endif;
end;
As you can see all I am doing is enabling IIS if the installation is running under Windows XP and family. Please note that this is actually failing on Vista! which makes the problem even more weirder. (I haven't checked this on XP yet)
I have a custom action setup to call this function like so:
Return Processing: Synchronous (check exit code)
In-Script execution: Immediate Execution
Execution Scheduling: Execute only once
Install Exec Sequence: After InstallValidate
Install Exec Condition: REMOVE<>"ALL"
MSI type number: 65792
The log notes that my custom action returned 3 (which apparently is failure) and the installation aborts.
What am i doing wrong?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 09, 2008
05:48 PM
.. and forgot to mention that I did put some MessageBox calls inside EnableIIS and to my surprise the function is not even being called! How can it return an error code 3 then?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 09, 2008
06:15 PM
Holy Smokes!
I just figured out the code wasn't getting called because I was missing a goshdarned HWND as a parameter to the function in its declaration? Jeez!!!! I can't believe I wasted 2 hours tracking this down 😞
I just figured out the code wasn't getting called because I was missing a goshdarned HWND as a parameter to the function in its declaration? Jeez!!!! I can't believe I wasted 2 hours tracking this down 😞
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)