forked from sbozzie/test-intel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestIntelReporter.nsi
More file actions
64 lines (54 loc) · 2.46 KB
/
Copy pathTestIntelReporter.nsi
File metadata and controls
64 lines (54 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
!include MUI2.nsh
!include FileFunc.nsh
Name "Test Intel Reporting Tool"
OutFile "test-intel.exe"
InstallDir "$LOCALAPPDATA\Test Intel Reporting Tool"
RequestExecutionLevel user
Var UninstallKey
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Japanese"
Section "Install"
StrCpy $UninstallKey "Software\Microsoft\Windows\CurrentVersion\Uninstall\TestIntelReporter"
SetOutPath $INSTDIR
File "PleaseIgnore.IntelMap\bin\Release\PleaseIgnore.IntelMap.dll"
File "PleaseIgnore.IntelMap\bin\Release\PleaseIgnore.IntelMap.xml"
File "PleaseIgnore.IntelMap\bin\Release\CodeContracts\PleaseIgnore.IntelMap.Contracts.dll"
File "TestIntelReporter\bin\Release\TestIntelReporter.exe"
File "TestIntelReporter\bin\Release\TestIntelReporter.exe.config"
CreateShortCut "$SMPROGRAMS\Test Intel Reporting Tool.lnk" \
"$INSTDIR\TestIntelReporter.exe" "" "" "" SW_SHOWNORMAL
CreateShortCut "$SMSTARTUP\Test Intel Reporting Tool.lnk" \
"$INSTDIR\TestIntelReporter.exe" "" "" "" SW_SHOWMINIMIZED
WriteUninstaller "$INSTDIR\Uninstaller.exe"
WriteRegStr HKCU $UninstallKey "DisplayIcon" "$INSTDIR\TestIntelReporter.exe"
WriteRegStr HKCU $UninstallKey "DisplayName" "Test Intel Reporting Tool"
WriteRegStr HKCU $UninstallKey "InstallLocation" "$INSTDIR"
WriteRegStr HKCU $UninstallKey "Publisher" "Test Alliance Please Ignore"
WriteRegStr HKCU $UninstallKey "UninstallString" "$INSTDIR\Uninstaller.exe"
WriteRegStr HKCU $UninstallKey "URLInfoAbout" "http://maps.pleaseignore.com/"
WriteRegDWORD HKCU $UninstallKey "NoModify" 1
WriteRegDWORD HKCU $UninstallKey "NoRepair" 1
${GetFileVersion} "$INSTDIR\TestIntelReporter.exe" $0
WriteRegStr HKCU $UninstallKey "DisplayVersion" $0
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
WriteRegDWORD HKCU $UninstallKey "EstimatedSize" $0
SectionEnd
Section "Uninstall"
StrCpy $UninstallKey "Software\Microsoft\Windows\CurrentVersion\Uninstall\TestIntelReporter"
Delete "$INSTDIR\Uninstaller.exe"
Delete "$INSTDIR\PleaseIgnore.IntelMap.dll"
Delete "$INSTDIR\TestIntelReporter.exe"
Delete "$INSTDIR\TestIntelReporter.exe.config"
RMDir "$INSTDIR"
Delete "$SMPROGRAMS\Test Intel Reporting Tool.lnk"
Delete "$SMSTARTUP\Test Intel Reporting Tool.lnk"
DeleteRegKey /ifempty HKCU $UninstallKey
SectionEnd