You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org> on 2008/03/04 11:08:41 UTC

[jira] Created: (DIRSTUDIO-289) Windows Installer should detect previous installation and propose to uninstall it before installing the newest

Windows Installer should detect previous installation and propose to uninstall it before installing the newest
--------------------------------------------------------------------------------------------------------------

                 Key: DIRSTUDIO-289
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-289
             Project: Directory Studio
          Issue Type: Improvement
    Affects Versions: 1.1.0
            Reporter: Pierre-Arnaud Marcelot
            Assignee: Pierre-Arnaud Marcelot
             Fix For: 1.1.0


Windows Installer should detect previous installation and propose to uninstall it before installing the newest

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSTUDIO-289) Windows Installer should detect previous installation and propose to uninstall it before installing the newest

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSTUDIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574910#action_12574910 ] 

Pierre-Arnaud Marcelot commented on DIRSTUDIO-289:
--------------------------------------------------

We can reuse this script for previous installation detection and uninstallation: http://nsis.sourceforge.net/Auto-uninstall_old_before_installing_new

<code>
Function .onInit
 
  ReadRegStr $R0 HKLM \
  "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PROGRAM_NAME}" \
  "UninstallString"
  StrCmp $R0 "" done
 
  MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
  "${PROGRAM_NAME} is already installed. $\n$\nClick `OK` to remove the \
  previous version or `Cancel` to cancel this upgrade." \
  IDOK uninst
  Abort
  
;Run the uninstaller
uninst:
  ClearErrors
  ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file
 
  IfErrors no_remove_uninstaller
    ;You can either use Delete /REBOOTOK in the uninstaller or add some code
    ;here to remove the uninstaller. Use a registry key to check
    ;whether the user has chosen to uninstall. If you are using an uninstaller
    ;components page, make sure all sections are uninstalled.
  no_remove_uninstaller:
  
done:
 
FunctionEnd
</code>

> Windows Installer should detect previous installation and propose to uninstall it before installing the newest
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-289
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-289
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 1.1.0
>
>
> Windows Installer should detect previous installation and propose to uninstall it before installing the newest

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRSTUDIO-289) Windows Installer should detect previous installation and propose to uninstall it before installing the newest

Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSTUDIO-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre-Arnaud Marcelot closed DIRSTUDIO-289.
--------------------------------------------

    Resolution: Fixed

Fixed

> Windows Installer should detect previous installation and propose to uninstall it before installing the newest
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-289
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-289
>             Project: Directory Studio
>          Issue Type: Improvement
>    Affects Versions: 1.1.0
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 1.1.0
>
>
> Windows Installer should detect previous installation and propose to uninstall it before installing the newest

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.