arunbalu
Posts: 2
Joined: Tue Mar 19, 2019 9:04 am

"Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostrophe

Problem description
"Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostrophe(').

How to reproduce
1. Create new generic installer project (Professional) using Advanced Installer 15.7 version.
2. Add "Run PowerShell inline script" custom action with sequence. Leave script text as is.
3. Mark Install parameter "Enable verbose logging".
4. Build the project.
5. On computer with Windows 10 64-bit create new user named "Super'User" (contains apostrophe) and login.
6. Run the installer.
7. It fails and suggests to review the log file.

Environment
Attached:
1.
Your Application.aip
The Advanced Installer project file
(13.52 KiB) Downloaded 419 times
2.
MSId9338.LOG
The installer log file
(183.42 KiB) Downloaded 397 times
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hello and welcome to our forums,

This issue was already fixed and it will be available starting with version 15.8 of Advanced Installer whose release is scheduled later this day.

Thank you anyway for the detailed step-by-step scenario and also for the provided files.

Just let me know if there is anything else I could help you with.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hello,

Thank you for your followup on this.

You are always welcome. I am glad you got this working.

Just let us know if there is anything else we could help you with.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AntoneF
Posts: 6
Joined: Tue Dec 11, 2018 2:08 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

This still happens as of 16.1 if the usersname has 2 or more apostrophes that are adjacent to one another(IE: B''Smith).
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hello Antone,

I have tested this and I was indeed able to reproduce the issue. I have forwarded this to our dev team and hopefully this will be fixed in a future version of Advanced Installer. Thank you for bringing this to our attention.

Unfortunately, I am afraid I am not aware of any workaround for this issue.

Also, as soon as the issue will be fixed, I will update this thread.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AntoneF
Posts: 6
Joined: Tue Dec 11, 2018 2:08 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hi Catalin,
Thank you for forwarding this to the dev. It's not nearly as critical as the original problem, just a weird one that cropped up during our testing of the fix. Once we have it in a fix if you could let me know, I would appreciate it.

Thanks Again,
Antone
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

You are always welcome, Antone.
Once we have it in a fix if you could let me know, I would appreciate it.
Sure, I will update this thread as soon as the issue will be fixed.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mindaugas
Posts: 6
Joined: Fri Apr 19, 2019 12:35 pm

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hey, Catalin

Maybe there's some progress or timeline known for the issue to be resolved?
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hello,

The issue was fixed and is now in the testing phase.

This is scheduled to be implemented in one of the following two releases (if not in 16.4, then it will be for sure implemented in 16.5).

As for a timeline, I can not tell you for sure. However, since we follow an agile methodology, we try to have a release approximately each month. That means that we can say this will probably be implemented by the end of the year.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "Run PowerShell inline script" custom action fails when installer is run under Windows username containing apostroph

Hi,

This issue was fixed in version 16.4.1 of Advanced Installer released on October 8th, 2019.

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

Return to “Common Problems”