Skip to content

Commit

Permalink
fix appveyor builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cleverca22 committed Feb 11, 2019
1 parent 3e954e4 commit abc7b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installers/common/WindowsInstaller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ signUninstaller opts = do
-- in order to sign the uninstaller, we must first create a dummy nsis script that generates a stand-alone uninstaller at "install time"
-- then "install" that dummy on the CI system, to create the uninstaller
void $ proc "runtempinstaller.bat" [] mempty
signFile opts (tempDir </> "uninstall.exe")
signFile opts ("c:/uninstall.exe")

signFile :: Options -> FilePath -> IO SigningResult
signFile Options{..} filename = do
Expand Down Expand Up @@ -188,7 +188,7 @@ writeInstallerNSIS outName (Version fullVersion') installerConfig clusterName =
writeRegStr HKLM uninstallKey "QuietUninstallString" "\"$INSTDIR/uninstall.exe\" /S"
writeRegDWORD HKLM uninstallKey "NoModify" 1
writeRegDWORD HKLM uninstallKey "NoRepair" 1
file [] $ (str . encodeString $ tempDir </> "uninstall.exe")
file [] "c:/uninstall.exe"

_ <- section "Start Menu Shortcuts" [] $ do
createDirectory "$SMPROGRAMS/$InstallDir"
Expand Down

0 comments on commit abc7b1c

Please sign in to comment.