-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDA-4514: NSIS Migration #2142
SDA-4514: NSIS Migration #2142
Conversation
e9dea93
to
fd78cc5
Compare
fd78cc5
to
daf93c2
Compare
push latestAutoUpdateChannelEnabled | ||
call SearchAndReplace | ||
FunctionEnd | ||
|
||
!macro copySystemGlobalConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic also needs to be applied for per user install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the logic to per user
build/installer.nsh
Outdated
@@ -56,6 +244,12 @@ FunctionEnd | |||
!insertmacro UAC_RunElevated | |||
Quit | |||
${endif} | |||
call updateConfigIsPodUrlEditable | |||
call updateConfigForceAutoUpdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep indentation I dont have any format available
build/installer.nsh
Outdated
@@ -56,6 +244,12 @@ FunctionEnd | |||
!insertmacro UAC_RunElevated | |||
Quit | |||
${endif} | |||
call updateConfigIsPodUrlEditable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we update config file for global install only?
daf93c2
to
4c79a66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏻 remove comments
build/installer.nsh
Outdated
#FileOpen $8 "E:\Projects\NSIS\text.txt" w | ||
#FileWrite $8 "$0$\r$\n" | ||
#FileWrite $8 "$1$\r$\n" | ||
#FileWrite $8 "$4$\r$\n" | ||
#FileClose $8 | ||
|
||
#LogText $0 | ||
#DetailPrint $0 | ||
#DetailPrint $1 | ||
#DetailPrint $4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this?
build/installer.nsh
Outdated
#FileWrite $8 "At done" | ||
#FileWrite $8 "$4$\r$\n" | ||
#FileWrite $8 "At done" | ||
#FileWrite $8 "$R4$\r$\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this?
build/installer.nsh
Outdated
@@ -44,6 +242,12 @@ FunctionEnd | |||
!macroend | |||
|
|||
!macro perUserM | |||
call updateConfigIsPodUrlEditable | |||
call updateConfigForceAutoUpdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent issue
build/installer.nsh
Outdated
!macroend | ||
|
||
Function SearchAndReplace | ||
${If} $PerUser == "exists" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent issue here too
build/installer.nsh
Outdated
@@ -44,6 +242,12 @@ FunctionEnd | |||
!macroend | |||
|
|||
!macro perUserM | |||
call updateConfigIsPodUrlEditable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be clearer if we have all call in one function which can be called in perUserM and allUserM macros
4c79a66
to
a16b38f
Compare
37684ad
to
825c98b
Compare
Description
Adding new NSIS script for migration of config file from 23.1 upto day
this script will eliminate duplicated config