Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OutFile "Activerse-v1-3-1-Setup.exe"
- Name "Activerse Installer v1.3.1"
- InstallDir "$PROFILE\Documents\ActiverseInstaller-v1-3-1"
- SetCompress Auto
- Section "Install Activerse"
- ; Set the target installation directory
- SetOutPath "$INSTDIR"
- ; Include all files and subdirectories from the Activerse folder
- File /r "C:\Users\agniv\Desktop\Activerse\*.*"
- ; Attempt to find VS Code path dynamically
- ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\Code.exe" ""
- ; Check if the path was found
- IfFileExists "$0" 0 +2
- Goto CreateShortcut
- ; If not found, set a fallback
- MessageBox MB_ICONEXCLAMATION|MB_OK \
- "VS Code not found. Please install it or set up manually. Regressing to default install."
- Goto End
- CreateShortcut:
- ; Create a shortcut to open Activerse in VS Code
- CreateShortcut "$SMPROGRAMS\Activerse in VSCode.lnk" "$0" '"$INSTDIR"'
- End:
- SectionEnd
Advertisement
Add Comment
Please, Sign In to add comment