Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Capture install path


1 reply to this topic

jbigelow

jbigelow
  • Members
  • 1 posts

Posted 19 July 2004 - 21:30

Hi all,

I would like to know how to capture the path a user installed my application to and then write that value to the .config file so they don't need to browse to the .mdb file and set the location on first run.

If there are other ways of doing what I'm trying to accomplish I would appreciate that info as well.

<edit>
I almost forgot to mention, I am using VS.NET 2003 with C# and creating a deployment package from my project.
</edit>

Thanks,
Justin

Edited by jbigelow, 19 July 2004 - 21:31.


luke_s

luke_s
  • Full Members
  • 532 posts

Posted 20 July 2004 - 07:36

you should be able to grab the path by either grabbing the property of the path (a global one in capitals), or using a call to the api functions (MsiGetTargetPath).

You can then use the iniFile table to set this value inside an ini file.

If you need to add this into another file, you will need to use a custom action.