Windows Installer

Probabily this is wrong section, but i don't know how post it.

I'm making a project installer project with windows installer 3.1.

I'd like, at the end of installation, that the installer execute my application.

Some one know how




Answer this question

Windows Installer

  • NWUpgrades

    I asked a simliar question in this thread

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=138476&SiteID=1

    It has to be possible.... This is what I did:

    Add an Installer Class to startup project, and override the OnCommit method. In there, use System.Diagnostics.Process.Start("pathToYourExe"). Then add a custom action to the installer project so that it knows to run the installer class.

    It works on XP but not on win2K professional clients....no idea why.


  • Erenion

    Thanks for your interest... but what mean WIX

    I'm using visual studio installer...

    I'll try to search some information about custum action and WIX.



  • mad.ve

    don't start learning Wix...

    Wix is Windows Installer XML, it is not easy to learn and most often you can handle installer problems with custom actions.



  • mclagett

    How exactly are you creating your installer With WiX

    Sadly I do not know much about creating installers other than what InstallShield Express provides (WiX is on the list to learn, it just hasn’t been achieved yet.

    From what I understand though, you’d need to add a custom action to your installer to carry out this task, something like this:

    <CustomAction Id='LaunchProduct' FileKey='ApplicationExe' ExeCommand=''
    Return="asyncNoWait" />

    Also if this is a WiX question, you may want to direct it to a forum such as this one in future.



  • Windows Installer