Results 1 to 6 of 6

Thread: Inno Setup Flag confirmoverwrite not working any more...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    149

    Inno Setup Flag confirmoverwrite not working any more...

    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... 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:
    Code:
    [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....
    Last edited by Set me As newtype; Sep 3rd, 2009 at 03:31 PM.

  2. #2
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    Re: Inno Setup Flag confirmoverwrite not working any more...

    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
    Last edited by wpearsall; Sep 3rd, 2009 at 06:52 PM.
    Wayne

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    149

    Re: Inno Setup Flag confirmoverwrite not working any more...

    Quote Originally Posted by wpearsall View Post
    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.

  4. #4
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    Re: Inno Setup Flag confirmoverwrite not working any more...

    Quote Originally Posted by Set me As newtype View Post
    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
    Wayne

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    149

    Re: Inno Setup Flag confirmoverwrite not working any more...

    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!

  6. #6
    Frenzied Member wpearsall's Avatar
    Join Date
    Feb 2002
    Location
    England / UK
    Posts
    1,065

    Re: Inno Setup Flag confirmoverwrite not working any more...

    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?
    Wayne

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width