Newbie - How to overwrite or not overwrite files - 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!

ManUtdFans
Posts: 7
Joined: Thu Jan 28, 2010 3:36 am

Newbie - How to overwrite or not overwrite files

Version 7.3.1

I am new to Advanced Installer althoug with experience in other installer. I have a simple project template.
Here are few questions:
1) Any way to 'define' the files overwrite or not overwrite clients files when I run the latest installer?
eg.
previous version has a file app.ini in the client machine, when he install the latest msi, how do I leave the original app.ini untouched? Although I have the app.ini in the latest msi.

2) How do I install the latest msi without uninstalling the previous version in client's pc?

3) How do I change the name of the application that appears in the
Control Panel -> Add or Remove Program list?

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Newbie - How to overwrite or not overwrite files

Hello,

1) This issue has been discussed in the following thread:
http://www.advancedinstaller.com/forums ... ore#p25216

2) You can enable the "Side by side install" option from the Upgrades page. You can then add the UpgradeDlg Dialog from the Dialogs page to enable the user to choose whether to upgrade the existing installation or install side by side

3) On the Product Details page, select the "Custom name" checkbox and input the name you want to be displayed in Add/Remove Programs

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ManUtdFans
Posts: 7
Joined: Thu Jan 28, 2010 3:36 am

Re: Newbie - How to overwrite or not overwrite files

Hi,

For
"2) You can enable the "Side by side install" option from the Upgrades page. You can then add the UpgradeDlg Dialog from the Dialogs page to enable the user to choose whether to upgrade the existing installation or install side by side"

I want to overwrite my previous version replaced with the latest version,
for example,
My client had installed version 1.0 of my application, then I have done enhancements and make it version 1.1.
For version 1.0,
Product Details -> Product Version = 1.0
For version 1.1,
Product Details -> Product Version = 1.1

Shouldn't I select "Automatically upgrade older product versions?
ManUtdFans
Posts: 7
Joined: Thu Jan 28, 2010 3:36 am

Re: Newbie - How to overwrite or not overwrite files

GabrielBarbu wrote:Hello,

1) This issue has been discussed in the following thread:
http://www.advancedinstaller.com/forums ... ore#p25216
Is there a way in the 'Files and Folders' to set overwrite file A but not File B?
eg.
I want to overwrite the .exe file, .hlp.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Newbie - How to overwrite or not overwrite files

Hello,

You are currently creating an automatic update. This always removes the previous version and installs the newer one.
If you want to keep the old files and only install the updated content, you might be interested in looking into using a patch project to create a patch.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
ManUtdFans
Posts: 7
Joined: Thu Jan 28, 2010 3:36 am

Re: Newbie - How to overwrite or not overwrite files

Hi,

I tried and it looks like did not remove all folders and files.

eg.
1) folders on client pc
\Download\Data\Employee.txt
\Docs
...



2) folders hierarchy in installer
\Download\Data
\Docs
...

When I install the updated installer patch the file: Employee.txt still there.
ManUtdFans
Posts: 7
Joined: Thu Jan 28, 2010 3:36 am

Re: Newbie - How to overwrite or not overwrite files

In addition, how do I tell the executable, eg. WagesCalculator.exe, to be added as an item in the
Start -> All Programs -> Wages -> WagesCalculator
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Newbie - How to overwrite or not overwrite files

Hello,

Regarding residual files, you can try removing it explicitly by using a File Removal Operation

You can add shortcuts to your application in the Start menu by creating a Shortcut to Installed File and place it in the "Application Shortcut Folder" on the "Files and Folders" page in Advanced Installer.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”