Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Fix Windows installer when run as non-admin, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Jul 1, 2015
1 parent 4115fb7 commit 1000203
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions ant/windows/windows-packager.nsi.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ InstallDir "$PROGRAMFILES\${socket.name}"
;------------------------------

Section
; Sets the context of shell folders to "All Users"
SetShellVarContext all

; Kills any running ${socket.name} processes
nsExec::ExecToLog "wmic.exe process where $\"Name like '%java%' and CommandLine like '%${build.socket.name}.jar%'$\" call terminate"

; Cleanup for wmic on Windows XP
SetShellVarContext current
Delete "$DESKTOP\TempWmicBatchFile.bat"
SetShellVarContext all

SetOutPath "$INSTDIR"

Expand Down Expand Up @@ -112,6 +118,9 @@ SectionEnd
;-------------------------------

Section "Uninstall"
; Sets the context of shell folders to "All Users"
SetShellVarContext all

; Kills any running ${socket.name} processes
nsExec::ExecToLog "wmic.exe process where $\"Name like '%java%' and CommandLine like '%${build.socket.name}.jar%'$\" call terminate"
; Cleanup for wmic on Windows XP
Expand All @@ -133,6 +142,12 @@ Section "Uninstall"

Delete "$DESKTOP\${socket.name}.url"
Delete "$DESKTOP\${socket.name}.lnk"

; Sets the context of shell folders to current user
SetShellVarContext current
Delete "$DESKTOP\${socket.name}.url"
Delete "$DESKTOP\${socket.name}.lnk"
Delete "$SMPROGRAMS\${socket.name}.lnk"
SectionEnd

;-------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/qz/common/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Constants {
public static final int OUTPUT_STREAM_SIZE = 20480;
public static final int BYTE_BUFFER_SIZE = 512;
public static final int APPEND_XML = 1;
public static final String VERSION = "1.9.2";
public static final String VERSION = "1.9.3";
public static final int APPEND_RAW = 2;
public static final int APPEND_IMAGE = 3;
public static final int APPEND_IMAGE_PS = 4;
Expand Down

0 comments on commit 1000203

Please sign in to comment.