Remote Deployment of MSI - Advanced Installer Community

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!

vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Remote Deployment of MSI

Hi!

I am using AI-6.4.1to build my MSI. My client is installing this MSI remotely.
Problem is that MSI installed the product in location "C:\Program Files\<<Company Name>>\<<ProductName>>", but log at client's end shows that it got installed in "C:\Program Files\<<ProductName>>". Product is running successfully but why the location has got changed.

Is administrator can change installation location by changing APPDIR property or he is doing something else? If 'yes' then How?

I have tried following command line to install MSI on my machine: msiexec / i test.msi APPDIR="C:\temp"

But, it still get installed in C:\Program Files\<<Company Name>>\<<ProductName>>".

Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remote Deployment of MSI

Hi Vicky,
Is administrator can change installation location by changing APPDIR property or he is doing something else? If 'yes' then How?
Any installer property can be set through the command line of the package. Therefore, the user which installs the package can set the value of APPDIR. However, this property contains the path for "Application Folder" in the "Files and Folders" page. If the files are placed in the "Program Files" folder in the project, the installation path will ignore APPDIR.

I'm not sure I understand the problem you are encountering. Can you please give me more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Re: Remote Deployment of MSI

Hi Cosmin!

Zillion Thanks for ur quick reply. Let me clear the problem.
There is a client who is installing my MSI over his network, I don't know which approach is he following to achieve this. But, the problem is, In Install Parameter-> Application folder the vlaue is" [ProgramFilesFolder][Manufacturer]".
Now, the product get installed in "[ProgramFilesFolder]", How is it possible???

One thing more, I called a custom action on event "Cost Finalize" which sets TARGETDIR if any supported product is present otherwise default path provided by MSI will be used(e.g. C:\Program Files\<<company Name>>).

I think , now u r able to understand the problem.

Regards,
Vicky
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remote Deployment of MSI

Hi Vicky,

Please note that it is not recommended to set TARGETDIR. Most likely this is why the package is installed in an incorrect location. If you want to modify the installation path with a custom action you can set the APPDIR property:
- with a "Property set with Formatted" custom action before "CostFinalize"
or
- with a "Directory set with Formatted" custom action after "CostFinalize"

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”