cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Blueeberry
Level 4

How to give a Path with a Commandline call

Hi

How can I call the Commandline and give a path with them?
Example:
In the Commandline window
"C:\Programs\InstallShield\MyInstallation" C:\Programs\installShield\Install.ini
I want that the path "C:\Programs\InstallShield\Install.ini" will save in a Property... But I don't know how I can do that...

I hope you can help me and thx

regards

Blueeberry
Labels (1)
0 Kudos
(4) Replies
IlkkaV
Level 7

What kind of project are you using? At least with a basic MSI project you can define what property should get that path as a value when launching the installation from the command line.

When using a setup.exe:
setup.exe /v"MYPROPERTY=\"C:\Programs\InstallShield\Install.ini\""

Without a setup.exe:
msiexec -i mypackage.msi MYPROPERTY="C:\Programs\InstallShield\Install.ini"
0 Kudos
Blueeberry
Level 4

Hi IlkkaV

I know this variant and i thank you, that you replay my Questen.

But I would like that I only have to write "C:\Programs\Install.ini" without the /v"PROPERTY=C:\Programs\Install.ini"... I don't know how but I hope this is realizable...

regards

Blueeberry
0 Kudos
gbaltazar
Level 6

If you are using an installscript project, perhaps parsing the CMDLINE variable will help. For Basic MSI, you have to use /v
0 Kudos
IlkkaV
Level 7

gbaltazar wrote:
If you are using an installscript project, perhaps parsing the CMDLINE variable will help. For Basic MSI, you have to use /v


Even that won't provide the syntax he's after, as anything going to the CMDLINE variable needs to be passed with a /z switch.
0 Kudos