Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
I have two installers, one will create folder("ProjectRDE") in mydocuments using Installshield Limited Edition --> Application Files --> [PersonalFolder]. As expected when i run the exe, it created "ProjectRDE" folder in MyDocuments. Another installer(which is also installs the same project output) will not have any folders in [PersonalFolder].(i consider the second installer as Upgrader.exe) When i execute the second installer it deleted the "ProjectRDE" folder from MyDocuments. But i have not create any custom actions. Even I cant mark the folder as "Permanant", as the installer is only limited edition. My query is, why this "ProjectRDE" is getting deleted, even i have not mentioned it in the second installer.


What I have tried:

Second installer deletes the folder created using the first installer
Posted
Updated 12-Dec-16 22:30pm
v3

1 solution

If both installers are for the same product they should use identical settings.

So why not add the creation of the folder to the second installer?

It may be also an installation conflict:
The second installer initiates the uninstall process of the first one before performing his own tasks and that uninstall removes the folder.
 
Share this answer
 
Comments
John Sathish Tamilarasu 13-Dec-16 4:48am    
Hi Jochen, Thanks. The first installer creates a folder named "ProjectRDE" in MyDocuments and the folder has abc.mdf file inside it. My application uses this database files. When the new version of the application comes, i use second installer to upgrade the existing application. At the same time i should keep my existing database files, as it may contain datas. This is the reason why i have not created the folder in second installer.
Jochen Arndt 13-Dec-16 4:54am    
The second installer should do nothing when he detects that the folder exists already. Just try it out.

A better solution would be to have only one installer that detects an existing version and performs only updating tasks in that case. But I don't know how to do that with IS because I'm using a different installer for my applications.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900