narramadan
Posts: 15
Joined: Thu Jul 24, 2008 2:59 pm

Install files in Program files and some in users home

Hi,

There are some files in my application which gets updated based upon the actions in application. Build the exe file, installed on Windows XP and it worked fine.

But in Vista, the file updates are failed because of the permissons set to the "Program Files" directory.

In order to supress this issue, we need the most of the folders/files to be installed in the "Program Files" and some other folders/files to be installed in "Users Home" directory.

Is it possible to achieve this with Advanced Installer ? If so can you guide us with the configuration process.

Also, If the application is uninstalled, the files that are installed in "Users Home" directory need to be removed.

Thanks,
Madan N
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Install files in Program files and some in users home

Hi,

Yes, you can install into the user's profile folder, here is a How To on this subject.

My advice would be to install them into a subfolder of Application Data folder, this is common location for application files. To do so you just have to place the files you desire in the Application Data folder from the Files and Folders page.

When the application is uninstalled all the files installed by the package will be automatically deleted. If your application creates files or folders into a custom location then you can delete them while uninstalling using a custom action placed in the Uninstall phase. Here is a How To on this subject.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”