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!

prowagama
Posts: 2
Joined: Wed Apr 17, 2019 10:58 pm

Command line script installation type and launch conditions

I am trying to script up a command line version of an installer process we have

When manually creating an installer, I do the following:
Install Parameters > Installation Type: Per machine if user is administrator, per user otherwise

Limit to basic user interface

Launch Conditions > Run only if user has administrator privileges, Prevent running in virtual machine


I cannot seem to find the command line options that will allows for these options.
Is it possible to select these options via command line ?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Command line script installation type and launch conditions

Hello and welcome to Advanced Installer forums,

I am afraid those can not be achieved through our CLI support.

As an additional note, please keep in mind that the "Per machine if user is administrator, per user otherwise" is an option meant to be used together with the "InstallTypeDlg". With that being said, it is not recommended to use it in a package that is meant to run with basic UI / no UI at all.

Please let me know if there is anything else I could help you with and I will be glad to assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prowagama
Posts: 2
Joined: Wed Apr 17, 2019 10:58 pm

Re: Command line script installation type and launch conditions

Thank you for getting back to me Catalin!

That is unfortunate that those options are not available via command line.
Is there any way from a command line script (I am automating a build process) that will allow restriction of the installer to only be ran as an admin ?
Or, is the data stored in the .aip file, and could be modified with something like Perl ?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Command line script installation type and launch conditions

Hello,
Is there any way from a command line script (I am automating a build process) that will allow restriction of the installer to only be ran as an admin ?
If by this you mean to have the same behavior as checking the "Run as administrator" option from "Install Parameters" page, then I am afraid this is not possible either.

Our CLI support is meant to cover basic repetitive operations, such as changing the version, rebuilding the project, etc.. Unfortunately, it does not cover everything (by this, I mean that you can not achieve through the CLI everything that you can achieve through the UI).
Or, is the data stored in the .aip file
From what I know, this data is not saved within the .AIP file.
and could be modified with something like Perl ?
I am afraid I am not aware if this is possible since I have never tried that (actually, I have never used Perl).

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

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

Return to “Building Installers”