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

Problem with SetPackageName

Hi
I have an issue with SetPackageName,
in my install.aic file:

SetPackageName &PACKNAME&.exe -buildname DefaultBuild
SetPackagename &PACKNAME&.msi -buildname MsiBuild

For some reason this seems to fail, so the output from the build says:

SetPackageName Sp3lisse\.exe -buildname DefaultBuild
SetPackagename Sp3lisse\.msi -buildname MsiBuild

You see the "\" in the package name, then it just defaults to the name of the .aip file.
:(

How can I avoid getting "\" in the packagename???

/Carl
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem with SetPackageName

Hi Carl,

Can you please try to use the quotes for your package name(e.g. “&PACKNAME&.msi” ) and see if the behavior still persist?

I've used the following command line and it worked as expected:
advancedinstaller.com /edit MyProject.aip /SetPackageName "&PACKNAME&.msi" -buildname DefaultBuild

Please let us know if that worked.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Problem with SetPackageName

I did try "&PACKNAME&" no differences,

since i use .aip and .aic i think you should use:
advancedinstaller.com /execute project.aip project.aic with the Environment Variables inside the aic file.

This is more or less an automated build so its kinda wrapper program around the AI program. eg. it sets the variables from inifile or commandline and then runs advancedinstaller /execute.

Actually the paths were tried against a shared drive Z:\, dont know if this should be a problem running /execute ?

Now when i moved everything back to C:\ i got an issue with ADDFILE in the .aic adding the "\"..... might be a problem with my .aip file?

/Carl

It can seem like Microsoft are to blame for adding "\" to environment variables in console, need to investigate a bit more though :evil:
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem with SetPackageName

Hi Carl,

Indeed, I've tested your scenario and I could replicate it.
I'm not sure why is this happening. Currently, is under investigation and I'll get back to you as soon as I have a conclusive answer.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Problem with SetPackageName

Is there a way to limit what builds are beeing built from the aic file? (like the buildlist)

/Carl
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem with SetPackageName

Hi Carl,

I'm not sure I fully understand your scenario. Can you please give us more details(maybe exemplify)?

Using the <buildlist> parameter you can specify the list of builds that should be performed. If no build is specified, then all builds are performed.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
CarlAarnes
Posts: 58
Joined: Tue May 24, 2011 3:43 pm

Re: Problem with SetPackageName

Was just wondering if there was a way to limit the # of builds from commandfile,
like just build Default(not the other builds).

could be like: Build DefaultBuild or Rebuild DefaultBuild in the commandfile, but now it seems to build any build ive made.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with SetPackageName

Hello Carl,
How can I avoid getting "\" in the packagename???
This improvement has been added in version 10.9 of Advanced Installer released on January 23, 2014.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”