OK. Just to bring this thread to a close & help anyone else who had my dilemma, if you want to install an addon to another path other than the default program files directory, you insert;
Code: Select all
-1,"D:\XXX" in the appropriate fields under [DestinationDirs]
where D:\XXX is the full path to the installation
Then subsitute the full path for most instances of 16422 or %16422%, as ricktendo64's response to my initial question pointed out.
However, it is, as Mitsuko suggests, a little tricky because some files
in the case of InstallRite
, for example, should remain in ProgramFiles even though the main files are in another directory. Also, in many cases, I would assume altering the default directory would break any uninstaller packaged in the cab. In that instance, you can either: (1) do a trial install of the full application to the path you want, save the uninstaller, delete the program and make a new cabinet file from the uninstaller & log file or (2) delete any uninstaller files in the original cabinet and use ricktendo64's guide to construct an .inf installer that removes its own setup files.
Hope this helps.
P.S. No offense to Mitsuko & ricktendo64, I just wanted to get some clarification on how to install to non-default directories. That’s what I thought forums like this were for. I've never seen an .inf installer point to a non-Windows defined path, so I was looking for some guidance.