msi that gets parameters

Got a problem you cannot solve? Try here.
Post Reply
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

msi that gets parameters

Post by nofarr »

hi,

I'm using VA12
I built msi and now i want to send to it parameters.
I have a 2 questions
1. how do i declare parameter in registry key data? parametrs in service ?
2. how do i send parametrs into the msi when i run the msi?

thanks in advanced,
Nofar
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: msi that gets parameters

Post by giaviv »

Nofar,

I am a little confused. First of all, which MSI are you talking about? Group Policy MSI?

Also, what do you mean by this " how do i declare parameter in registry key data? parametrs in service ?"

Thanks!
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: msi that gets parameters

Post by nofarr »

hi ,

sorry :)
I meant that i created MSI group policy
and i want to insert parametets to it.


for example in the registry i have key that is data is IP ,
i want to send every time different IP
how can i do it?

thanks
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: msi that gets parameters

Post by giaviv »

Could you please give me an example if how you would want this to be?
Are you asking how to write values to the registry? How to pass command line parameters to the MSI?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: msi that gets parameters

Post by nofarr »

Hi,

i'm asking How to pass command line parameters to the MSI?
and how to define it in the MSIcode
i know how to write key in the registry but the msi i created suppose to run on different computers,
and i want to change the ip value in the registry according to the command line parameters .

thanks,
Nofar
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: msi that gets parameters

Post by giaviv »

Nofar,

What happens is that in Group Policy deployed setups, the MSI tables of the outer group policy MSI contains the CMDLINE field which indicates the command line parameters that will be passed to the EXE. You can edit these tables with MSI editors such as Orca, but you cannot establish this in the InstallAware IDE.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
nofarr
Posts: 30
Joined: Mon Aug 08, 2011 7:49 am

Re: msi that gets parameters

Post by nofarr »

Hi Aviv,

what doed it mean "MSI tables of the outer group policy MSI contains the CMDLINE field which indicates the command line parameters that will be passed to the EXE"?
where can i find those MSI tables ?
do i need to use group policy MSI or it's better to leave it as exe?

thanks,
Nofar
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: msi that gets parameters

Post by giaviv »

Unless you are deploying with group policy, use the EXE.
The MSIL file contains these tables, and you can edit them using an MSI editor such as Orca (which is free).
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply