+ Reply to Thread
Results 1 to 4 of 4

Thread: How to detect patch mode

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    Default How to detect patch mode

    12345
    Last edited by atrav99; 07-24-2010 at 07:36 AM.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: How to detect patch mode

    Hi Markus,

    I assume you are doing something in your script to decide whether this is a new (full) install or an update. For example, if your previous version detection fails, it's probably a new install and not an update (or patch). If a previous version was detected, chances are good that this is candidate for a patch.

    But it completely depends on your specific project.

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    SetupBuilder "point. click. ship"
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  3. #3
    Join Date
    Feb 2009
    Posts
    6

    Default Re: How to detect patch mode

    12345
    Last edited by atrav99; 07-24-2010 at 07:35 AM.

  4. #4
    Join Date
    Mar 2004
    Posts
    4,308

    Default Re: How to detect patch mode

    Then I would suggest to create an installer runtime variable to hold the "patch mode" status. For example, %IS_PATCHMODE%. You can set the variable value at installer compile time (from the command line).

    For example, the following in your script:

    #set compiler variable [PATCH_MODE] = "0"
    Set Variable %IS_PATCHMODE% to "0"
    #ifcompvar [PATCH_MODE] Equals "1" Then
    Set Variable %IS_PATCHMODE% to "1"
    #end

    When you compile the setup.exe and you would like to "enable" your patch mode "identifier":

    SBUILDER.EXE /C "C:\Development\Sample.sb6" /CV PATCH_MODE "1"

    BTW, the ability to programmatically activate/deactivate patch generation is on the drawing board.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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