directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSTUDIO-289) Windows Installer should detect previous installation and propose to uninstall it before installing the newest
Date Tue, 04 Mar 2008 10:08:41 GMT

    [ 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.


Mime
View raw message