View Full Version : VS Installer - call .exe after installation
ChanceND
07-25-2006, 09:14 PM
Does anyone know how to go about calling an .exe file as soon as a Visual Studio installer finishes installing a program? So when the program is installed then the desired program will be started automatically.
I’m looking for some sample code or a tutorial link if anyone knows of one.
Thanks,
Brandoe85
07-25-2006, 09:24 PM
Look here:
http://www.codeguru.com/csharp/.net/net_vs_addins/visualstudioadd-ins/article.php/c7245/
Scroll down to the heading "Custom Actions Editor"
Good luck;
ChanceND
07-25-2006, 10:03 PM
Ok he is running a .vbs file in the under Commit in custom actions and when it runs after the install this error message comes up:
There is a problem with this Windows Installer package. A script required for thsi install to complete could not be run. Contact your support personnel or package vendor.
Also, this is what his script file looks like:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Program Files\City of Moorhead\MHDSystray\MHDSystray.exe""", 6, True
set wshshell = nothing
Any Ideas?
Brandoe85
07-25-2006, 10:24 PM
Run your installer and have it generate a log file, you'll be able to see the errors this way.
Found this on a search, if you havn't already:
http://www.codeguru.com/forum/archive/index.php/t-253224.html
ChanceND
07-25-2006, 10:26 PM
ok nevermind, he figured it out.
Just changed the script to something else.
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.