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

Default installation location


2 replies to this topic

nicolasr

nicolasr
  • Full Members
  • 10 posts

Posted 20 January 2011 - 01:44

Hi,

I have built a small MSI that should install an executable file to a company/product dependent path like:

c:\Program Files\MyCompany\MyProduct

The problem is, that the default path that is shown in the Custom Setup dialog for my feature looks like:

c:\MyCompany\MyProduct

How could I initialize the default path. Do I really need a custom action for this? I thought c:\Program Files would be the recommended base path and therefore the default?

My directory table looks something like this:
TARGETDIR SourceDir
MYCOMPANYDIR TARGETDIR MyCompany:.
MYPROGRAMDIR MYCOMPANY MyProg~1|MyProgram:Files

Any ideas?

Thanks in advance,
Nicolas

VBScab

VBScab
  • Full Members
  • 436 posts

Posted 20 January 2011 - 11:01

Your table should look more like this:
CODE
TARGETDIR    [leave blank]       SOURCEDIR
ProgramFilesFolder TARGETDIR  .:PROGRA~1|program files
ProgramFiles64Folder TARGETDIR  .:Prog64~1|Program Files 64
MYCOMPANY  ProgramFilesFolder MYCOMP~1|My Company
INSTALLDIR  MYCOMPANY  MYPROD~1|My Product

- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.

nicolasr

nicolasr
  • Full Members
  • 10 posts

Posted 20 January 2011 - 21:02

Thanks, that did the trick!

Nicolas