AddFilePermission problem - Advanced Installer Community
simeonov
Posts: 2
Joined: Mon May 20, 2024 2:57 pm

AddFilePermission problem

Hello,

I'm trying to automate the create of the installer using command line. However, I'm on the step to add different permissions to files but it fails.
I've used the sample commands provided on the website to be sure I'm not making a mistake anywhere.

Code: Select all

C:\>mkdir MyProject

C:\>"AdvancedInstaller.com" /newproject "C:\MyProject\Sample.aip" -type "professional" -lang "en" -overwrite

C:\>"AdvancedInstaller.com" /edit "C:\MyProject\Sample.aip" /AddFile APPDIR C:\Windows\notepad.exe

C:\>advancedinstaller.com /edit "C:\MyProject\Sample.aip" /AddFilePermission APPDIR\notepad.exe -username Everyone -full_control
Invalid MSI identifier string [APPDIR\notepad.exe].
Could you please tell me what I'm doing wrong?

If I'm using /SetFilePermission instead of /AddFilePermission the error message is: "Unexpected exception"
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: AddFilePermission problem

Hello and welcome to our forums,

I've tested this and I was able to reproduce the descirbed behavior.

I've also had a look over our bug tracking tool and noticed this was already reported by one of my colleagues - also already fixed.

The fix will be available in version 21.8 of Advanced Installer, which will be released in the following few days.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
simeonov
Posts: 2
Joined: Mon May 20, 2024 2:57 pm

Re: AddFilePermission problem

Thank you, can't wait for the new version!
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: AddFilePermission problem

You are always welcome! :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: AddFilePermission problem

Hello,

This has been fixed in version 21.8.1 of Advanced Instlaler.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”