Commit f37b743a authored by Happy Tobi's avatar Happy Tobi

[NEW] write update.json on installer

parent e441c018
......@@ -27,6 +27,7 @@
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\66bed7da-e601-54e6-b2e8-7be611d82556"
!insertMacro disableAutoUpdates
Delete "$SMSTARTUP\Rocket.Chat+.lnk"
......@@ -39,16 +40,17 @@
!macro disableAutoUpdates
${GetParameters} $R0
${GetOptions} $R0 "--disableAutoUpdates" $R1
${GetOptions} $R0 "/disableAutoUpdates" $R1
${IfNot} ${Errors}
MessageBox mb_ok $R1
!insertMacro writeUpdateFile
!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