Skip to content

Commit

Permalink
windows fixes version 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoonj committed May 10, 2012
1 parent 398f670 commit 0a9573f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions nsis/xmimsim.nsi.in
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ ${If} $R0 == ""
${ElseIf} $R0 == ${XRAYLIB_VERSION}
Goto gtk2install
${Else}
MessageBox MB_OK "The version of xraylib that was found on this system is incompatible with this release of XMI MSIM. The correct version of xraylib will now be downloaded and installed."
MessageBox MB_OK "The version of xraylib that was found on this system is incompatible with this release of XMI-MSIM. The correct version of xraylib will now be downloaded and installed."
;quiet uninstall first
ReadRegStr $R1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xraylib" "QuietUninstallString"
ExecWait '$R1'
Expand Down Expand Up @@ -249,9 +249,9 @@ WriteRegStr HKLM ${PRODUCT_UNINST_KEY} "QuietUninstallString" "$\"$INSTDIR\Unins

;start menu
DetailPrint "Creating Start menu shortcuts"
CreateDirectory "$SMPROGRAMS\XMI MSIM"
createShortCut "$SMPROGRAMS\XMI MSIM\XMI MSIM.lnk" "$INSTDIR\Bin\xmimsim-gui.exe"
createShortCut "$SMPROGRAMS\XMI MSIM\Uninstall XMI-MSIM.lnk" "$INSTDIR\Uninstall.exe"
CreateDirectory "$SMPROGRAMS\XMI-MSIM"
createShortCut "$SMPROGRAMS\XMI-MSIM\XMI-MSIM.lnk" "$INSTDIR\Bin\xmimsim-gui.exe"
createShortCut "$SMPROGRAMS\XMI-MSIM\Uninstall XMI-MSIM.lnk" "$INSTDIR\Uninstall.exe"


;register xmsi extension
Expand Down Expand Up @@ -384,9 +384,9 @@ DeleteRegKey HKLM "Software\${PRODUCT_NAME}\xmso2htm"
DeleteRegKey HKLM "Software\${PRODUCT_NAME}"
DeleteRegKey HKLM "${PRODUCT_UNINST_KEY}"

delete "$SMPROGRAMS\XMI MSIM\XMI MSIM.lnk"
delete "$SMPROGRAMS\XMI MSIM\Uninstall XMI-MSIM.lnk"
RmDir "$SMPROGRAMS\XMI MSIM"
delete "$SMPROGRAMS\XMI-MSIM\XMI-MSIM.lnk"
delete "$SMPROGRAMS\XMI-MSIM\Uninstall XMI-MSIM.lnk"
RmDir "$SMPROGRAMS\XMI-MSIM"

DetailPrint "Unregistering xmsi extension"
${unregisterExtension} ".xmsi" "XMI-MSIM inputfile"
Expand Down
2 changes: 1 addition & 1 deletion src/xmi_registry_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int xmi_registry_win_query(int kind, char **regcontents) {
char stringkey[1024];


strcpy(stringkey,"Software\\xmimsim\\");
strcpy(stringkey,"Software\\XMI-MSIM\\");
switch (kind) {
case XMI_REGISTRY_WIN_DATA:
strcat(stringkey,"data");
Expand Down

0 comments on commit 0a9573f

Please sign in to comment.