We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jstuardo
Posts: 88
Joined: Mon Nov 09, 2015 10:44 pm

Problem with UTF8 enconding in VBS script

Hello,

I have a custom action to be ran after installation of the application.

That custom action runs a VBS script, whose goal is to open some UTF-8 encoded files and replace a text inside it.

The problem is that the installer opens and runs the VBS file only if it is saved using ANSI encoding.The text to be replaced contains accented vowels, so the resulting file, what is UTF-8 encoded, shows the accented vowel as xF3. To show the correct accented vowel, I need to change enconding to ANSI in the resulting file, what I cannot do in practice.

I think the problem will be solved if the installer could open and run the VBS file as a UTF-8 encoded file.

How can I solve this?

Thanks
Jaime
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with UTF8 enconding in VBS script

Hello Jaime,

Indeed, this seems to be a Windows Installer limitation when using the "Launch attached file" custom action type. However, as a workaround, you can try to use our "Execute inline script code" custom action type.

Let us know if this helped.

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

Return to “Building Installers”