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!

samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

silent installation for feature based installers

Hi,

I have build a web application installer(database, web application, web services) as feature based. I have custom and complete installation. i have 3 dialog popups which will take the input from the user and update the respective config files and creates default user in the database tables.

Please let me know this can be make as command line installer?

Thanks in advance,
Sam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: silent installation for feature based installers

Hi Sam and welcome to Advanced Installer forums,

Yes, you can pass command lines switches to the features based prerequisite through the Install Command Lines fields from the Prerequisite Setup Files Tab.

Also, you should take a look on the Creating Suite Installations article which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

Thanks for the reply. I have already developed feature based installer, now i want to make it work as command line installer.

is there any specific settings need to be enabled to work from command line.

can you help me with the sample command?

I tried the below command and it is giving error.

myapp.exe /qn APPDIR="C:\folder\1.0.0.\" USER_NAME="user name" DOMAIN_NAME="domain name" USER_PASSWORD="user password" DB_SERVERNAME="db server"

i want to run the above command for complete installation, what is the problem with this command, Please correct the command.

Thanks
Sam
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

Another problem i have with the vbscript validations, I have a custom action for user input validation, on configure dialog "Next" button i have called the custom action in the published evnets. form validation are working fine but the problem is after asking the validation aslo popup is going to the next screen. when there are a field to be filled i don't want user to go to the next screen.

Please help me.

Thanks
Sam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: silent installation for feature based installers

Hi Sam,
myapp.exe /qn APPDIR="C:\folder\1.0.0.\" USER_NAME="user name" DOMAIN_NAME="domain name" USER_PASSWORD="user password" DB_SERVERNAME="db server"
Can you please try to use the following command line and see if the behaviour still persist (the /qn command line switch should be the last one):

Code: Select all

myapp.exe APPDIR="C:\folder\1.0.0" USER_NAME="user name" DOMAIN_NAME="domain name" USER_PASSWORD="user password" DB_SERVERNAME="db server" /qn 
Another problem i have with the vbscript validations, I have a custom action for user input validation, on configure dialog "Next" button i have called the custom action in the published evnets. form validation are working fine but the problem is after asking the validation aslo popup is going to the next screen. when there are a field to be filled i don't want user to go to the next screen.
Please take a look on the Custom Dialog with validation of string input forum thread which debates a similar subject.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

Thanks for the help, both of my problems are solved now.

Thanks
Sam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: silent installation for feature based installers

You're always welcome Sam,

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

I have windows service in my installation which will run with the user credentials input given while installation.

repair operation is failing because of this service required the credentials to start, how can we handle this? is there way to work out the repair option with out taking the input details again?

I am also writing the same details to config file.

Thanks
Sam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: silent installation for feature based installers

Hi Sam,

Can you please set the properties which have been assigned to the related controls as persistent in the Install Parameters page and see if the behaviour still persist?

Just enable the Set persistent property option from the Edit Property dialog.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

Persistent property serves my purpose, Where these values will be stored? i checked in stalled folder found nothing related to these values.

Thanks
Sam
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

I want to define a persistent property without having default value, However UI not allowing me to do that.

How can we create a persistent property without default value.

Thanks
Sam
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: silent installation for feature based installers

Hi Sam,

The Value field from the Edit property dialog does not allow empty values. However, you can add a default value and reset the property value.
In order to reset its value, you can go in the Custom actions view and add the predefined Set installer property custom action as a custom action with sequence. You can edit its properties like that:
  • Property: MY_PROP
  • Value: {}
Let us know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

Hi Dan,

Thanks for the response,

I have problem with the repair, when i run the repair from the exe file it is working fine, when i repair from the add/remove programs options i am getting an popup message saying .msi resource was not found. please find the attachement and help me to fix the issue.
Attachments
repair error
repair error
reapir error.png (19.62 KiB) Viewed 6226 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: silent installation for feature based installers

Hi Sam,

Can you please enable the Do not delete extracted MSI and CAB files option from the Media -> Configuration tab and see if the behaviour still persist?
This option will allow your package to be repaired or modified if required by the user or by a patch.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samarasa
Posts: 15
Joined: Tue Jan 20, 2015 2:32 am

Re: silent installation for feature based installers

I will enable and let you know, i need to fix this now for the release please help, i will post back the result after enable

Return to “Building Installers”