Hi,
I have a Basic MSI project. I have written script too but i am building only the MSI. i.e. no setup.exe. In the Installscript I am using the property CMDLINE to read the type of Install or the switch used to run the install.
I am not able to understand that how should I run my msi from command prompt (not by double clicking the MSI) so that the switch I am using gets assigned to CMDLINE. Or is there any other way that I can assign the value of my switch to some Property or variable used in the InstallScript.
Its very urgent. Please help asap. All the help is welcome.
Thanks in advance.
Swati
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.
How to read CMDLINE property
Started by
SwatiBansal
, Feb 14 2006 08:04
5 replies to this topic
Posted 14 February 2006 - 08:48
Have u tired this on the command prompt:
<path of msi> <swtich>
Note: there is a space between <path of msi> & <switch>
For eg. I am working on an applicatin. The application name is addinloader.exe and i am using "load" as a command line parameter. So I write:
Addinloader.exe load
This should work fine for ur msi too.
I m not sure if this is what u r looking for but this is what I got to understand from ur problem.
<path of msi> <swtich>
Note: there is a space between <path of msi> & <switch>
For eg. I am working on an applicatin. The application name is addinloader.exe and i am using "load" as a command line parameter. So I write:
Addinloader.exe load
This should work fine for ur msi too.
I m not sure if this is what u r looking for but this is what I got to understand from ur problem.
Posted 14 February 2006 - 09:44
Thanks for the reply.
Yes, I have tried it but it is not working.
I have different switches like local, network etc for the local install and network install respectively.
I tried
msiexec /i <path of msi> local and msiexec /i <path of msi> "local"
but both dont work.
then i tried
msiexec /i <path of msi> CMDLINE="local"
but still CMDLINE variable in my Installscript is not assigned the value local.
I am using the system variable CMDLINE in my Installscript. What I want to know is that how can I assign the value say "local" to CMDLINE while running the MSI from command prompt.
Or if there is any other way of achieveing it then please suggest that too.
Swati.
Yes, I have tried it but it is not working.
I have different switches like local, network etc for the local install and network install respectively.
I tried
msiexec /i <path of msi> local and msiexec /i <path of msi> "local"
but both dont work.
then i tried
msiexec /i <path of msi> CMDLINE="local"
but still CMDLINE variable in my Installscript is not assigned the value local.
I am using the system variable CMDLINE in my Installscript. What I want to know is that how can I assign the value say "local" to CMDLINE while running the MSI from command prompt.
Or if there is any other way of achieveing it then please suggest that too.
Swati.
Posted 14 February 2006 - 10:36
you can set a public Property like
msiexec /i <path of msi> PROP="local"
you can use MsiGetProperty to Read the Property with Installscript.
msiexec /i <path of msi> PROP="local"
you can use MsiGetProperty to Read the Property with Installscript.
Posted 14 February 2006 - 14:13
CMDLINE only works for InstallScript projects. In Basic MSI do as ali suggested.
Stefan Krüger
InstallSite.org twitter facebook
Posted 17 February 2006 - 06:53
Thanx ali and Stefan for the replies.
I did the same and it is working fine now.
Swati
I did the same and it is working fine now.
Swati