1
This commit is contained in:
1 parent
f8e42fad84
commit
6f7a3bbb97
7 files changed
+108
-46
No files matched your search
@@ -73,13 +73,11 @@ ManifestDPIAware true
|
||||
Name "${INFO_PRODUCTNAME}"
|
||||
OutFile "..\..\bin\${INFO_PROJECTNAME}-${ARCH}-installer.exe" # Name of the installer's file.
|
||||
InstallDir "$PROGRAMFILES64\shop_main" # Default installing folder ($PROGRAMFILES is Program Files folder).
|
||||
InstallDir "$PROGRAMFILES64\shop_main" # Default installing folder ($PROGRAMFILES is Program Files folder).
|
||||
ShowInstDetails show # This will always show the installation details.
|
||||
|
||||
Function .onInit
|
||||
!insertmacro wails.checkArchitecture
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
FunctionEnd
|
||||
|
||||
Section
|
||||
@@ -94,6 +92,11 @@ Section
|
||||
CreateShortcut "$SMPROGRAMS\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}"
|
||||
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" "" "$INSTDIR\icon.ico"
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" ""
|
||||
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons"
|
||||
SendMessage 0xFFFF 0x0017 0 0 /TIMEOUT=5000
|
||||
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" "" "$INSTDIR\icon.ico"
|
||||
|
||||
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" ""
|
||||
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons"
|
||||
SendMessage 0xFFFF 0x0017 0 0 /TIMEOUT=5000
|
||||
@@ -113,7 +116,6 @@ SectionEnd
|
||||
Section "uninstall"
|
||||
!insertmacro wails.setShellContext
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
ExecWait '"taskkill" /F /IM "piVideo.exe"'
|
||||
RMDir /r "$AppData\${PRODUCT_EXECUTABLE}" # Remove the WebView2 DataPath
|
||||
|
||||
RMDir /r $INSTDIR
|
||||
|
||||
Reference in new issue
Block a user