PDA

Click to See Complete Forum and Search --> : Inno Setup Flag confirmoverwrite not working any more...


Set me As newtype
Sep 3rd, 2009, 03:14 PM
Gents,

I've been using Inno Setup for a long time (now using ver. 5.3.4) and prompting users about overwriting a database file, with perfect success, until recently...:cool: Seems the function has stopped working.

I'm sure there must be something I did, but I've been pretty good about documenting my changes and can't find anything...

Here's my script. Please see if you can help::)

[Setup]
MinVersion=5,5
AppName=Bla
AppVersion=2.100
AppVerName=Bla ver. 2.100
OutputBaseFilename=Bla ver 2_100 Setup
AppPublisher=Me
AppPublisherURL=www.Bla.com
AppSupportURL=www.Bla.com
AppUpdatesURL=www.Bla.com
DefaultDirName={pf32}\Bla
DefaultGroupName=Bla
Compression=lzma
SolidCompression=yes
ChangesAssociations=no
AppCopyright=Copyright (C) 2005-2009
BackColor=clBlue
BackColor2=clBlack

UsePreviousAppDir=yes
DisableFinishedPage=yes
DisableDirPage=yes
DisableReadyPage=yes
DisableProgramGroupPage=yes
DisableStartupPrompt=yes
DisableReadyMemo=yes

PrivilegesRequired=admin

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"

[InstallDelete]
Type: filesandordirs; Name: "{commonappdata}\Access Quotient"

[Files]

Source: "C:\Bla\DLLS\VB5StKit.dll"; DestDir: "{sys}"; Flags: sharedfile restartreplace uninsneveruninstall
Source: "C:\Bla\DLLS\MSVBVM50.dll"; DestDir: "{sys}"; Flags: regserver restartreplace uninsneveruninstall
Source: "C:\Bla\DLLS\StdOle2.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: regtypelib restartreplace uninsneveruninstall
Source: "C:\Bla\DLLs\msado25.tlb"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: regtypelib restartreplace uninsnosharedfileprompt

Source: "C:\Bla\DLLS\OleAut32.dll"; DestDir: "{sys}"; MinVersion: 5,5; Flags: regserver onlyifdoesntexist uninsneveruninstall
;Source: "C:\Bla\DLLS\OleAut32.dll"; DestDir: "{sys}"; Flags: regserver restartreplace uninsneveruninstall
Source: "C:\Bla\DLLS\OlePro32.dll"; DestDir: "{sys}"; Flags: regserver restartreplace uninsneveruninstall
Source: "C:\Bla\DLLS\asycfilt.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall
Source: "C:\Bla\DLLS\Ctl3d32.dll"; DestDir: "{sys}"; Flags: restartreplace uninsneveruninstall

Source: "C:\Bla\Bla.exe"; DestDir: "{app}"; Flags: ignoreversion

;THIS IS WHERE confirmoverwrite IS NOW BEING IGNORED:
Source: "C:\Bla\Bla.mdb"; DestDir: "{commonappdata}\Bla"; Flags: confirmoverwrite

;...more code follows....

wpearsall
Sep 3rd, 2009, 06:06 PM
im not sure... but:

Flags: confirmoverwrite ignoreversion

try that?

also, have you tried using ISTool... - it makes making setups a million times easier :)

-Edit:
i just checked on mine and the flags i posted works... so if that doesnt work for you, i suggest you download a new copy of Inno from their website :)

Set me As newtype
Sep 4th, 2009, 11:38 AM
im not sure... but:

Flags: confirmoverwrite ignoreversion

try that?

also, have you tried using ISTool... - it makes making setups a million times easier :)

-Edit:
i just checked on mine and the flags i posted works... so if that doesnt work for you, i suggest you download a new copy of Inno from their website :)

Thanks, Wayne. Still no workie...

I updated to the latest release of Inno and put in the flag you suggested.

I'll have to look back into my archived files and see what I might have inserted/removed above the Files section that might have affected it...

I'll give ISTools a try. Looks interesting.

wpearsall
Sep 5th, 2009, 08:19 PM
I'll give ISTools a try. Looks interesting.

you can do quite a lot with the setup packages you make using the istools :) - can add extra buttons to the screen, make a mini program (ideal for validation of serials etc) - but its pascal language :P

are you sure it is replacing the file?

does it show a message asking to replace>

might sound silly, but have you tried deleting the old setups / moving them,,, and making sure the new setup is actually going where you think it is :) - also - you can test the setup at the end of the compile and info comes up about the setup - and options etc on inno etc :)

Set me As newtype
Sep 8th, 2009, 12:03 PM
Wayne,

Yep, it's definitely replacing the file, with no warning. And I have removed previous setup and reinstalled. Database is installed in common app files folder.

Will look at testing the setup at end of compile. Is that with Inno Setup or ISTool?

Thanks again!:thumb:

wpearsall
Sep 9th, 2009, 06:46 AM
i think its with both, but i use istool mostly, since i like to add an extra form etc onto my install :)

Edit:
IF its giving errors though, i believe that Inno has a support section too. - not trying to move you on along or w.e but im sure the guy would like to know about any bugs etc :)

ALSO: is the file name the same case? make sure because applications dont always check the case? :)