CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Set packagename from a property

Is there a way to set packagename with a property from within a commandline?

eg.

search a inifile(its actually a license file but structured as a ini file), for customernr, store it in a property, execute a commandline build using the .aip and an .aic file...
So what i want is the aic to do something like this setpackagename setup[|PROPERTY].


/Carl
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set packagename from a property

Hi Carl,

Try Set Package Name Command Option.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Set packagename from a property

I did, Setpackagename setup[|CustomerNo] in the .aic ,but the value seems to be NIL (if i set the value for the property at the installer parameters, it gets transfered).

btw: advanced installer is version 9.8 buil 48877

/Carl
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set packagename from a property

Hi Carl,

That's because .AIC files don't support pseudo-formated references.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Set packagename from a property

Nor does the MSI name on the media settings page??
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set packagename from a property

No, that field should support pseudo-formatted references. Press F1 on that page to see the associated help article (Configuration Settings Tab) with more details.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Set packagename from a property

I see, but running the test on the ini search it finds a value (raw) , but when using the property [|CUST_NO] it doesnt seem to be resolved e.g NIL

:cry:

/Carl
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Set packagename from a property

Hi Carl,

I'm not sure what you mean, the properties referenced in pseudo-formatted fields are resolved at build time, not at install time.
Can you give me a clear example of your scenario?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”