Hello,
I need to copy a file that's local to the installer EXE to the target installation folder, but I can't seem to get it to work properly. Here's the command I'm using:
Copy Local Files $EXEDIR$\\ClientInstall.ini to $TARGETDIR$I've also tried using $ROOTDIR$ in place of $EXEDIR$, but in either case, the file simply isn't copied. I've confirmed that the ClientInstall.ini file does indeed exist in the expected directory.
I'm using IA 5.31.
- Mark R.
Copy local file during install
-
- Posts: 47
- Joined: Tue Apr 18, 2006 8:39 am
-
- Posts: 47
- Joined: Tue Apr 18, 2006 8:39 am
Ok, I understand where the problem lies now, but I'm unsure about how to solve it.
The issue is with my understanding of $EXEDIR$ and $ROOTDIR$. I assumed that if I was installing an executable from a network share (such as \\\\computer\\folder\\install.exe), these variables would be set to "\\\\computer\\folder"). But that is clearly not the case - they are set to the local temporary path of the installation exe (which certainly makes sense to me).
What I would really like to do is copy a file from the network share folder in the example I provide above. Is there any way to do this?
- Mark R.
The issue is with my understanding of $EXEDIR$ and $ROOTDIR$. I assumed that if I was installing an executable from a network share (such as \\\\computer\\folder\\install.exe), these variables would be set to "\\\\computer\\folder"). But that is clearly not the case - they are set to the local temporary path of the installation exe (which certainly makes sense to me).
What I would really like to do is copy a file from the network share folder in the example I provide above. Is there any way to do this?
- Mark R.
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
What you want to do is use the $SFXPATH$ pre-defined variable. For a full list of pre-defined variables, please see the help topic titled "Pre-Defined Variables".
$SFXPATH$ will refer to the folder where the main setup.exe resides in at runtime.
$SFXPATH$ will refer to the folder where the main setup.exe resides in at runtime.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 47
- Joined: Tue Apr 18, 2006 8:39 am
I've got the same problem. however, I'm not using the exe as my setup, but created an msi file using the group policy wizard.
In that case all of the next variables will point to the temp dir of the current user...
$EXEDIR$
$MSIFILE$
$SFXPATH$
But I really want to use the network share !
In that case all of the next variables will point to the temp dir of the current user...
$EXEDIR$
$MSIFILE$
$SFXPATH$
But I really want to use the network share !
Ton Blokhuizen
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Just pass that value to the outer MSI as part of the CMDLINE public MSI property, which will then be passed to the inner MSI and your setup can read that using the CMDLINE variable.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
No, that is not what I meant. You should use the CMDLINE public MSI property to pass path information to the actual setup.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
I've lost track ....
I really don't know what you mean.....
What do you mean with "CMDLINE public MSI property"
and where can I find it?
As you probabbly know, I'm building a MSI setup converting the Executable to an MSI file using the Group Policy wizard.
I really don't know what you mean.....
What do you mean with "CMDLINE public MSI property"
and where can I find it?
As you probabbly know, I'm building a MSI setup converting the Executable to an MSI file using the Group Policy wizard.
Ton Blokhuizen
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
Tooling Engineer
BMA BV - Netherlands
[i]BMA: leading the way in obstetrical data management
http://www.bma-mosos.nl[/i]
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Please read the help file entries for the Group Policy Wizard tool. This is explained in detail there. Also, the Group Policy Wizard tool itself contains some hints on its own user interface, please read them carefully.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: No registered users and 40 guests