Commit f37b743a authored by Happy Tobi's avatar Happy Tobi

[NEW] write update.json on installer

parent e441c018
......@@ -27,6 +27,7 @@
${Else}
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\66bed7da-e601-54e6-b2e8-7be611d82556"
${EndIf}
!insertMacro disableAutoUpdates
Delete "$SMSTARTUP\Rocket.Chat+.lnk"
!macroend
......@@ -39,16 +40,17 @@
!macro disableAutoUpdates
${GetParameters} $R0
ClearErrors
${GetOptions} $R0 "--disableAutoUpdates" $R1
${GetOptions} $R0 "/disableAutoUpdates" $R1
${IfNot} ${Errors}
MessageBox mb_ok $R1
!insertMacro writeUpdateFile
${EndIf}
!macroend
!macro writeUpdateFile
FileOpen $4 "$PROFILE\update.json" w
FileOpen $4 "$APPDATA\Rocket.Chat\update.json" w
FileWrite $4 "{$\r$\n"
FileWrite $4 " \"autoUpdate\": \"false\"$\r$\n"
FileWrite $4 ' "canUpdate": false,$\r$\n'
FileWrite $4 ' "autoUpdate": false$\r$\n'
FileWrite $4 "}"
FileWrite $4 "$\r$\n"
FileClose $4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment