I have authored a basic MSI package (using IS Premier 2008 as it happens) such that most of the components remain on the server via an administrative install followed by installs on network client machines, and all works as expected. For example my executables remain on the server, and the client's Startmenu shortcut does indeed launch the mainprogram.exe off the server.
At the end of the client install though, i now need to write an INI file with some component paths in. But i cannot find what Property, or what information, to query to pass into the INI. Using above mainprogram.exe as an example, if i put
myIniPathValue = [INSTALLDIR]mainprogram.exe
that yields the correct string for regular installs, but not for client ones. How can i determine whether a component is run from source and get it's path; can i get the Startmenu shortcut path somehow? I looked in a .log after a client install but nothing seemed appropriate. I guess CA's might be the answer if i hunt in [SOURCEDIR] but i would rather do it more neatly in the MSI itself.
*it would also be great if i could determine the very fact that a client install was performed from the mini-MSI that msiexec created in my server folder and record that fact into my Ini too! Again i guess i *could* do this with a CA that looks at SOURCEDIR and sees if there are any files or folders in there apart from the MSI but that seems kludgy...
Thank you
Andy
Edited by andyguest13, 10 February 2009 - 17:41.