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: Custom action in merge module is not executed
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
‎Jul 09, 2008
04:33 AM
Custom action in merge module is not executed
I create a merge module containing a custom action
MSI Type Number : 1026
In-Script Execution : Deffered Execution
Executable Filename :\notepad.exe
And I create two rows in ModuleInstallExecuteSequence table
Action Sequence BaseAction After
notepad InstallFiles 1
InstallFiles 4000
After using this merge module in my main installer,
I can check the generated .msi with Orca
the InstallExecuteSequence Table contain the following row :
Action Sequence
notepad 4001
But when I execute this install notepad isn't launched
I can't find where i am missing something ...
MSI Type Number : 1026
In-Script Execution : Deffered Execution
Executable Filename :
And I create two rows in ModuleInstallExecuteSequence table
Action Sequence BaseAction After
notepad InstallFiles 1
InstallFiles 4000
After using this merge module in my main installer,
I can check the generated .msi with Orca
the InstallExecuteSequence Table contain the following row :
Action Sequence
notepad 4001
But when I execute this install notepad isn't launched
I can't find where i am missing something ...
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2008
10:11 AM
If you create an MSI log file at run time, is there any more information?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
02:55 AM
MSI (s) (54:40) [09:42:46:566]: Doing action: InstallFiles
Action 09:42:46: InstallFiles. Copying new files
Action start 09:42:46: InstallFiles.
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2235 2: 3: StreamRef_ 4: SELECT `Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`, `Patch`.`Sequence`, `Patch`.`StreamRef_` FROM `Patch` WHERE `Patch`.`File_` = ? AND `Patch`.`#_MsiActive`=? ORDER BY `Patch`.`Sequence`
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2205 2: 3: MsiPatchOldAssemblyFile
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2228 2: 3: MsiPatchOldAssemblyFile 4: SELECT `MsiPatchOldAssemblyFile`.`Assembly_` FROM `MsiPatchOldAssemblyFile` WHERE `MsiPatchOldAssemblyFile`.`File_` = ?
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2205 2: 3: MsiSFCBypass
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2228 2: 3: MsiSFCBypass 4: SELECT `File_` FROM `MsiSFCBypass` WHERE `File_` = ?
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2205 2: 3: MsiPatchHeaders
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2228 2: 3: MsiPatchHeaders 4: SELECT `Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ?
InstallFiles: File: Copying new files, Directory: , Size:
MSI (s) (54:40) [09:42:46:582]: Note: 1: 2205 2: 3: PatchPackage
Action ended 09:42:46: InstallFiles. Return value 1.
MSI (s) (54:40) [09:42:46:582]: Doing action: notepad
Action 09:42:46: notepad.
Action start 09:42:46: notepad.
Action ended 09:42:46: notepad. Return value 0.
Any suggestion ?
Action 09:42:46: InstallFiles. Copying new files
Action start 09:42:46: InstallFiles.
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2235 2: 3: StreamRef_ 4: SELECT `Patch`.`File_`, `Patch`.`Header`, `Patch`.`Attributes`, `Patch`.`Sequence`, `Patch`.`StreamRef_` FROM `Patch` WHERE `Patch`.`File_` = ? AND `Patch`.`#_MsiActive`=? ORDER BY `Patch`.`Sequence`
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2205 2: 3: MsiPatchOldAssemblyFile
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2228 2: 3: MsiPatchOldAssemblyFile 4: SELECT `MsiPatchOldAssemblyFile`.`Assembly_` FROM `MsiPatchOldAssemblyFile` WHERE `MsiPatchOldAssemblyFile`.`File_` = ?
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2205 2: 3: MsiSFCBypass
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2228 2: 3: MsiSFCBypass 4: SELECT `File_` FROM `MsiSFCBypass` WHERE `File_` = ?
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2205 2: 3: MsiPatchHeaders
MSI (s) (54:40) [09:42:46:566]: Note: 1: 2228 2: 3: MsiPatchHeaders 4: SELECT `Header` FROM `MsiPatchHeaders` WHERE `StreamRef` = ?
InstallFiles: File: Copying new files, Directory: , Size:
MSI (s) (54:40) [09:42:46:582]: Note: 1: 2205 2: 3: PatchPackage
Action ended 09:42:46: InstallFiles. Return value 1.
MSI (s) (54:40) [09:42:46:582]: Doing action: notepad
Action 09:42:46: notepad.
Action start 09:42:46: notepad.
Action ended 09:42:46: notepad. Return value 0.
Any suggestion ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
10:58 AM
Ok, I modified the ModuleInstallExecuteSequence table in my merge module
as :
Action BaseAction
notepad.C58078B8_8B68_455A_969E_268E19D523F4 InstallFiles
with C58078B8_8B68_455A_969E_268E19D523F4 being the module ID GUID.
In my understand main install can locate the right custom action (assume we have two custom actions with the same name in differents merge modules)
in the specified merge module.
it works now
as :
Action BaseAction
notepad.C58078B8_8B68_455A_969E_268E19D523F4 InstallFiles
with C58078B8_8B68_455A_969E_268E19D523F4 being the module ID GUID.
In my understand main install can locate the right custom action (assume we have two custom actions with the same name in differents merge modules)
in the specified merge module.
it works now
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2008
11:01 AM
Yes, quite right; KB article Q112907, "HOWTO: Insert a Custom Action into a Merge Module" mentions the need for the module ID GUID.
Thanks for posting the follow-up...
Thanks for posting the follow-up...