English 中文(简体)
Post install action in installshield merge module
原标题:

I am using installshield 2011. I have a merge module and I want certain exe to be executed after the merge module is installed. This exe is part of merge module files. Now when I write a custom action in the merge module, the action get executed before the files are copied into the destination location. Is there any way to execute this custom action after files are oped so that it can find exe at that location? Or is there any other way to solve this issue?

最佳回答

Merge Modules don t get "installed", they get merged into the installer database and that s what gets installed. In otherwords Components/CustomActions authored in the Basic MSI project and authored in the MSM project behave the same way.

Are you writing the custom action in the MSI or MSM project. The difference is the former uses the InstallExecuteSequence table and the latter uses the ModuleExecuteSequence table. All other rules apply. You probably want to schedule this after InstallFiles as Deferred with No Impersonation ( SYstem Context ). Also you probably want to use the component action state in a condition to make sure this only gets executed when the component s key file is being installed.

Also, consider if you need to do anything in rollback and uninstall scenarios. That and make sure that whatever this EXE is doing couldn t be done natively in MSI. ( SelfReg patterns are inferior to native declarative transactional MSI patterns. )

问题回答

暂无回答




相关问题
Reusing InstallShield prerequisites

I m looking to have a release layout with multiple installers but with a single source for prerequisites, in the following structure: Product1setup.exe Product2setup.exe Product3setup.exe ...

DuplicateFile table with GAC

My installer has grown very large b/c of file duplication. Some of our DLL s are in two places (local and GAC or local and system32 folders). How can I use the DuplicateFile table or other ...

Error 1926 on setup created by InstallShield 2008

I m compiling the setup with InstallShield 2008 - Professional and I have a problem that occurred only in some Win 7 Ultimate systems. My setup is suppose (among others) to copy files to the "Program ...

A InstallShield INSTALLDIR and TARGETDIR issue

Now I have a problem about InstallShield INSTALLDIR and TARGETDIR. for example: 1- I make a project named "MyTestprogram" 2- I install this program into my computer which location is D:MyCompany...

Why isn t SQL Text Substitution working in InstallShield

I m trying to run some dynamic SQL in an installscript project. In the UI portion of the script I have the following code: TextSubSetValue("<INSERTSITES>", message, TRUE); message = ""; ...

how to open a web page on click of button in InstallShield?

HI, I want to open a web page on click of a button in any dialog that is created in InstallShield. I think it can be created by using custom actions but as I am new in this tool do not find the exact ...

Silent install installer with prerequisites [closed]

Is there a way to install silently (/s) an InstallShield (non-MSI) installer that requires its own prerequisites? In my case the prerequisite is Microsoft Visual C++ 2008 Redistributable. Its UI ...

Issue with InstalShield

I Use Installsheild 2009 To Deployment VS2005 Project with Sql express 2005 DB. I put my exe and DB files. And I typed /qn SQLAUTOSTART=1 ADDLOCAL=ALL DISABLENETWORKPROTOCOLS=1 in command line to ...

热门标签