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!

audioillity
Posts: 4
Joined: Fri Apr 27, 2007 12:00 pm

Silent Installs and Custom file/server Paths

Hi,

I need to make a slient install, but it needs to know
1) the SQL server name
2) SQL database name
3) Program location on the network

i don't want to hard code this into the install as from site to site this information can change.

The install is for only setting up the DLLs and shortcuts on a new PC which then points to the server setup.

can i do this? i.e. read an ini/text file.

EDIT
Sorry i also just wanted to point out that the User can have no hand in selecting the path or server information. to them it should be like a slinet install. to the IT guys there should something they can create to point the installer in the right direction.
EDIT

Thanks for your Help.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can pass the property value from command line like this:
msiexec /i package.msi PROPERTY_NAME="Value"

To set the installation folder use following command line:
msiexec /i package.msi APPDIR="C:\New Folder"

To run the package in silent mode you can use:
msiexec /i package.msi /qn
Or you can use "Limit to basic user interface..." from "Install Parameters" page.

http://msdn2.microsoft.com/en-us/library/aa367988.aspx

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
core66
Posts: 4
Joined: Mon May 07, 2007 5:48 pm

Hi Gigi,

I am currently trying to hard code the location of the installation to the D: drive. I used the following example below and had some issues. Can you please let me know what I'm doing wrong.

I am doing a simple installation, so I checked the "LIMITED TO BASIC USER INTERFACE" checkbox in the INSTALL PARAMETERS window.

I also added a new property and included the following as the value.

msiexec /i package.msi APPDIR="D:\XXX"

Where XXX is the name of the folder I would like the files installed to.

I have also included this user define property in the APPLICAITON FOLDER & APPLICATION SHORTCUT.

I've tried multiple things without any success. Can you provide me with a step by step process to hardcode the installation directory to something other than the c:\ drive. I would like the default installation directory to be D:\.

Thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The installation folder is located in the "Install Parameters" page, "Application Folder" field.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”