Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there a way to get the path of the a setup (i.e. the .msi or the .exe) file built with the windows installer in C# during installation? I have designed a setup file that must copy a file during the installation from the setup directory to the target directory. I know how to retrieve the target directory but lack ideas to retrieve the location of the .msi or the .exe file that did the installation. Please folks I need help.
Posted

 
Share this answer
 
Couldn't you simply use %~p0 (path) or %~dp0 (drive+path), these work on the commandline/batch file.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900