1

I've created a msi installer with visual studio 2008. I'd like to launch the installed program right after the installer has finished.

1) How to add a User Interace like many installers have that asks if to launch the app now?

2) Can I create a custom action that runs the app with user privileges?

Kai
  • 5,850
  • 13
  • 43
  • 63
  • ok, i've managed but now the problem is that running the app works but the app uses %appdata% and %appdata% of the msi is not the user's dir. it' commonappdata... any ideas? – Kai Jan 11 '10 at 00:15
  • Are you saying you want to launch the application with a working directory other than the temporary folder which your `msi` is using, specifically the directory in which the actual `msi` is located? – Nick Bolton Jan 11 '10 at 03:10
  • Also you may want to self-answer with your solution, for extra reputation points. – Nick Bolton Jan 11 '10 at 03:11
  • I'd like to run the app in the same dir as it's now launched but I think I need to run it with user rights or with the normal user not with the msi setup user 'cause the %appdata% path of the msi-setup-user is different from the user's... – Kai Jan 11 '10 at 08:50

1 Answers1

1

You can either create a js custom dialog described here: Run exe after msi installation?

or you can make a custom action at commit that calls [TARGETDIR]\YourApp.exe

Community
  • 1
  • 1
Kai
  • 5,850
  • 13
  • 43
  • 63
  • 1
    problem is that the wrong user is executing the app in that case. the msi seems to have its own user that is just for the setuo (i guess for some reason e.g. rollback). any ideas? – Kai Feb 04 '10 at 23:32