Randem Systems Support Board

Inno Setup => Inno Setup - General Questions => Topic started by: sacramento on August 17, 2008, 09:03:54 AM

Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 09:03:54 AM
Hi:
I had create a project in innoscript and then pass this project to innosetup...this is a update project...the intention is update the file .exe in the project.
The problem is:
The installation create a second folder with the .exe file(and the same name) and don't overwrite the file that i want in the folder that I want...
Any tip to do this?
 
Thanks
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 09:34:11 AM
Without seeing what you are doing all I can state that you need to change the version number of the exe project before you compile an update or new release so that it will be replaced on the target system under normal Inno Setup operations.
 
I don't understand what you mean by the installation creates a second folder. Inno Setup will use the last installed folder if you use the same AppId as the original installation. Post your script.
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 11:11:00 AM
This is the script
 
Thanks
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 05:10:02 PM
The update script looks fine. Does the original script have the same exact AppId parameter
 
AppId=Winbirds Profissional - Actualiza
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 05:14:53 PM
Here is your answer from your other script. The AppId's are not the same so it will not automatically install over the other. In your original script you have
 
AppId=Winbirds Profissional
 
and in your update you have  
 
AppId=Winbirds Profissional - Actualiza
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 09:20:44 PM
Hi Randem:
 
I had change the Appid but the problem remain...Innosetup continues create a second folder!
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 09:31:39 PM
What folder are you referring to?
 
You will probably have to uninstall the app and start from scratch on the installs. Are you using Virtual PC 2007 for your clean installations? If not I would suggest it.
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 09:55:36 PM
The problem it's the same like in the begin...The package made it by innosetup create a iqual folder name Winbirds Profissional,and don't overwrite it!
 
What is Virtual PC 2007 ?
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 10:01:15 PM
Virtual Pc 207 is a product where you can run multiple OS's on your computer without having to install a dual boot. Google it.
 
What is iqual? Is only one folder being created? If you have not changed the version numbers the exe will not be overwritten unless you override it with the ignoreversion flag.
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 10:13:44 PM
Setup create a equal folder...I have a folder name's Winbirds Profissional and all files the program need's to work...When I execute the setup innosetup go's create annother folder with the same name Winbirds Profissional...That i need it's just overwrite my old's files for update them!
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 10:19:48 PM
Can you tell me where I can put the ignoreversion flag?
And the syntax is ignoreversion=yes?
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 10:21:02 PM
It goes on the line in the [Files] section.
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 10:25:47 PM
In the [FIles] section I got a error...
Maybe [Flags] section?
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 10:27:50 PM
on the line where the file is...
 
Flags: ignoreversion...
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 10:33:04 PM
ok...I had find...
The Problem remain...
This put me mad!!!
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 10:33:45 PM
lets see that script...
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 10:38:22 PM
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 10:53:53 PM
The script is fine. Are you installing in the same folder?
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 11:07:25 PM
yes...that's because i think this is very strange
 
(Message edited by sacramento on August 17, 2008)
Title: Overwrite in Innosetup
Post by: sacramento on August 17, 2008, 11:11:30 PM
Well...something it's more very strange now...
I had installed the original program,and then the update...Now the setup have work well...
 
Strange no?
Maybe because the old installation as made by annother Setup????
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 11:19:47 PM
So how are you checking to see if it changed?
 
Also if you check the install log you can see exactly what happened. Look in UserYourusernameAppDataLocalTemp folder for the log
Title: Overwrite in Innosetup
Post by: Randem on August 17, 2008, 11:21:04 PM
That is the way I told you to do it. That is the way it should work.
 
The same AppId...
 
(Message edited by randem on August 17, 2008)