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

InstallShield SUPPORTDIR in Basic MSI


9 replies to this topic

Matthias1967

Matthias1967
  • Full Members
  • 92 posts

Posted 18 November 2008 - 14:59

Hello,

I am getting confused about where (and when) InstallShield Basic MSI copies the files I added in the "Support Files" view.

Background:
My setup (which I am trying to migrate from InstallScript to BasicMSI) needs several files temporarily, which should be accessed from InstallScript custom actions. These files include some exes and some DLLs needed by those exes.

InstallScript calls them by
CODE

LaunchAppAndWait(SUPPORTDIR^"MyExe.exe", MyCommandLine, LAAW_OPTION_WAIT);


When I discovered that one of those custom actions did not do its jobs, I found out that the InstallScript system variable SUPPORTDIR was mapped to %TEMP%\<ProductCode>, but this directory contains only some InstallShield files.

So where are those Support files copied, and how can I access them?
I am using InstallShield Dev Studio 9.

felltier-a

felltier-a
  • Awaiting Authorisation
  • 85 posts

Posted 24 November 2008 - 08:21

Hey Matthias,

the system variable "SUPPORTDIR" and the property "SUPPORTDIR" are different. Try to read the information from the "SUPPORTDIR" property via "MsiGetProperty".


regards,
Udo

Matthias1967

Matthias1967
  • Full Members
  • 92 posts

Posted 25 November 2008 - 11:53

Right. But all I need to access here is the InstallShield system variable SUPPORTDIR, as I am looking for files listed in the "Support Files" view of the IDE. My question was where InstallShield copies those files and how I can access them from script.

vijayakumar

vijayakumar
  • Full Members
  • 43 posts

Posted 25 November 2008 - 12:54

Hi,

You can use the [SourceDir] variable. The files that you added in Support files will be accessible with this property.

-Vijay

Matthias1967

Matthias1967
  • Full Members
  • 92 posts

Posted 25 November 2008 - 13:02

This confuses me.
As far as I see, [SourceDir] is an MSI property, not an InstallScript variable.

vijayakumar

vijayakumar
  • Full Members
  • 43 posts

Posted 25 November 2008 - 13:28

See if this helps you.

Matthias1967

Matthias1967
  • Full Members
  • 92 posts

Posted 27 November 2008 - 08:48

Thank you for the link. However, it is not very helpful for me.

I have been assuming that the Support Files are copied to some temporary location when the InstallScript engine starts (or even earlier). To investigate this a bit further, I entered a MessageBox into the first InstallScript Custom Action of the InstallExecuteSequence, assuming that I could find the files somewhere on my disk at this point. However, I could not find any files from "Support Files -> Language Independent"!

As an additional notice, I am still using InstallShield DevStudio 9. I understand that the handling of the SUPPORTDIR has changed from InstallShield 9 to 12 (and later versions), however, the files must be copied to some location on the disk in any case. So I am still wondering what has gone wrong.

Edited by Matthias1967, 27 November 2008 - 09:43.


Matthias1967

Matthias1967
  • Full Members
  • 92 posts

Posted 27 November 2008 - 10:20

Meanwhile, I could solve my main problem:

For some reason I have not yet fully understood, the custom action ISSetupFilesExtract was missing from all of my sequences. By deleting my Support files and re-adding them, I could make InstallShield enter this action into both the UI and the execute sequences.
Now the support files are copied, and SUPPORTDIR is initialized correctly.

amol

amol
  • Full Members
  • 1 posts

Posted 07 September 2010 - 12:44

By re adding the files in supported file resolved the SUPPORTDIR path issue.
Thank you !

vPanchumarthi

vPanchumarthi
  • Full Members
  • 56 posts

Posted 22 September 2010 - 16:47

generally the support files will go to TEMP folder of the user who logged in the system. also a property needs to be created to map TEMP folder to SUPPORTDIR