Trouble with special characters - Advanced Installer Community
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Trouble with special characters

Hello!

I'm building our installers using a command file. Here is an example:
------------
;aic
SetProperty Manufacturer="ATT"
SetProperty ProductName="AT&T Tech Support"
Save
Rebuild
------------

The advancedinstaller.com command to execute the build of the installer using this command file borks on the ampersand in AT&T. For some reason it converts it to a % sign.
Is there some kind of formatting that needs to be done?
I've tried things like & because that's actually what exists in the AIP file when AT&T is manually entered into the Advanced Installer gui.
But alas, no worky. I've also tried html escaped codes like %26, but that doesn't seem to want to work either.

Any help?

thanks,
-nate
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trouble with special characters

Hello Nate,

I've tested the scenario and replicated the behavior. I'm not sure why this happens. This seems to be an Advanced Installer issue. We'll try to fix the issue in a future version of Advanced Installer, thank you for bringing it to our attention. We'll update this thread when a fix will be out.

Until then, as a workaround to edit and rebuild your project, you can use a BAT file like this:

Code: Select all

"C:\Program Files (x86)\Caphyon\Advanced Installer 11.8\bin\x86\AdvancedInstaller.com" /edit "<path to your aip>" /SetProperty Manufacturer="ATT"
"C:\Program Files (x86)\Caphyon\Advanced Installer 11.8\bin\x86\AdvancedInstaller.com" /edit "<path to your aip>" /SetProperty ProductName="AT&T Tech Support"
"C:\Program Files (x86)\Caphyon\Advanced Installer 11.8\bin\x86\AdvancedInstaller.com" /rebuild "<path to your aip>"
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Trouble with special characters

I'm glad you were able to replicate the problem!

I'll try and work in the workaround with my scripts.

Any ETA on the next release?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trouble with special characters

Hello Nate,

The next release should be out soon, but most likely a fix for this issue won't be included in the next version. We'll update this thread as soon as the fix will be officially available.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Trouble with special characters

Alright, so the workaround is working. However, it quadrupled our build time because of the multiple calls to AdvancedInstaller.com.
Is there a way to set more than one property at a time from command line?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trouble with special characters

Hello Nate,

We apologize for the inconvenience. Unfortunately, you cannot set multiple properties at once using only one /SetProperty call.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Trouble with special characters

So this issue is fixed for ampersands. YAY

But now we're back to having this issue, and it's with the service mark character.

We're using this code: &#8480;

We're setting our properties via a command file. The service mark appears just perfectly inside of our application, which uses the same source strings.
It also looks fine in the AIP project file after the properties are modified to have that service mark.

Is this the same regression issue as the one in the original post? These were working fine in older versions of AI (around 8.0)

Any ideas for a workaround?

edit:

btw, to add to this, the ampersand issue still exists for the 'cancel' dialog when canceling an install.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trouble with special characters

Hello,
But now we're back to having this issue, and it's with the service mark character.

We're using this code: &#8480;

We're setting our properties via a command file. The service mark appears just perfectly inside of our application, which uses the same source strings.
It also looks fine in the AIP project file after the properties are modified to have that service mark.

Is this the same regression issue as the one in the original post? These were working fine in older versions of AI (around 8.0)

Any ideas for a workaround?
I'm afraid I don't fully understand your scenario. Can you please give us a detailed step by step test case which we can follow to replicate the issue?
btw, to add to this, the ampersand issue still exists for the 'cancel' dialog when canceling an install.
This is the normal behavior. This happens because by default the "text" label from the "CancelDlg" dialog has the "No Prefix" attribute set to False. To avoid this behavior just go to "Dialogs" page, select the "CancelDlg" dialog under the "Special Dialogs" tree node, select the "text" label on it and from "Properties" right pane set the "No Prefix" flag to True.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Trouble with special characters

Hi there,

Sorry for the late response. I'm back to working on this issue!

But now we're back to having this issue, and it's with the service mark character.

We're using this code: &#8480;

We're setting our properties via a command file. The service mark appears just perfectly inside of our application, which uses the same source strings.
It also looks fine in the AIP project file after the properties are modified to have that service mark.

--

I'm afraid I don't fully understand your scenario. Can you please give us a detailed step by step test case which we can follow to replicate the issue?
The character is a service mark. (sm). The sm mark shows up ok in the AIP project file, but doesn't seem to want to display in the installer itself. Here is an image of what it looks like in the installer:
https://www.dropbox.com/s/a3vujyeg5k4kd ... k.PNG?dl=0
And here is what it should look like:
Support 360℠

Any ideas on how to get the ℠ symbol to correctly display?
This is the normal behavior. This happens because by default the "text" label from the "CancelDlg" dialog has the "No Prefix" attribute set to False. To avoid this behavior just go to "Dialogs" page, select the "CancelDlg" dialog under the "Special Dialogs" tree node, select the "text" label on it and from "Properties" right pane set the "No Prefix" flag to True.
I do not see a CancelDlg anywhere. Is this something that's only available with an enterprise license? Currently we're on the professional license.

thanks for the help,
-n
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Trouble with special characters

Bumping for visibility.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trouble with special characters

Hello,

I apologize for my delayed reply. This week we had a release and we were a bit busy.
The character is a service mark. (sm). The sm mark shows up ok in the AIP project file, but doesn't seem to want to display in the installer itself. Here is an image of what it looks like in the installer:
https://www.dropbox.com/s/a3vujyeg5k4kd ... k.PNG?dl=0
And here is what it should look like:
Support 360℠

Any ideas on how to get the ℠ symbol to correctly display?
This happens because the build language codepage doesn't include the service mark character. To avoid this limitation you can build your setup using the UTF-8 encoding. Just go to "Builds page -> Configuration tab -> Database Encoding section" and enable the "UTF-8 encoding" option.
I do not see a CancelDlg anywhere. Is this something that's only available with an enterprise license? Currently we're on the professional license.
Yes, I'm afraid this edit is possible only by using our "Dialog Editor" feature available only starting with the "Enterprise" edition of AI.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
natecope
Posts: 38
Joined: Tue Feb 03, 2015 4:27 pm

Re: Trouble with special characters

The UTF-8 switch worked.
Thanks for the help!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trouble with special characters

You're welcome.

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

Return to “Common Problems”