Results 1 to 6 of 6

Thread: [InnoSetup]Check for previous installation

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Question [InnoSetup]Check for previous installation

    pls i want to know if there is a way of telling inno setup to check for previous version of the app that is about to be installed?

    say for like checking the Program Files directory for a folder that has the name of the app.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [InnoSetup]Check for previous installation

    What do you mean by check for previous installation? Inno Setup already knows if a previous installation has been installed. It does not check the program files location but a registry entry. It is controlled by AppId which default value is AppName.

  3. #3

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: [InnoSetup]Check for previous installation

    what i mean is, can InnoSetup check if the program have been installed before?

    in a situation where by AppName have been installed before and am trying to install it again, i want InnoSetup to prompt me that AppName have been installed already and leave an option to continue or exit installation.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [InnoSetup]Check for previous installation

    You will probably have to check in the code section for the registry entry with the name of your AppId to determine if it was intalled already then do what you want to do.

  5. #5

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: [InnoSetup]Check for previous installation

    Quote Originally Posted by randem
    You will probably have to check in the code section for the registry entry with the name of your AppId to determine if it was intalled already then do what you want to do.
    how do i do that?
    can you pls show me(because i don't do Pascal/Delphi)
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: [InnoSetup]Check for previous installation

    Neither do I. Check with Kleinma. He does Pascal code for Inno Setup.

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