Creating a Launcher #1079
-
Hello, How could one create a launcher like the Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
See the build script, which uses the NSIS build script: Lines 975 to 981 in d77fb5d Lines 591 to 632 in d77fb5d winpython/portable/launcher_basic.nsi Lines 1 to 44 in 5369694 |
Beta Was this translation helpful? Give feedback.
-
I didn't retry to create launchers without NSIS recently. |
Beta Was this translation helpful? Give feedback.
-
It's in the source, look for create_launcher |
Beta Was this translation helpful? Give feedback.
-
The snippets I quoted above are self explanatory as to what parameters the Python script is feeding into the NSIS script. If you want to avoid the Python script, then you need to manually feed all of those parameters into the NSIS script. Whether you need Questions about NSIS specifically would be better served by reading NSIS's documentation, going to NSIS's forum or going on the NSIS Discord. Overall, you might get better answers if you ask specific questions after you actually try to do it, as opposed to a general request for a tutorial. |
Beta Was this translation helpful? Give feedback.
-
They're generated by the Lines 1407 to 1423 in 5369694 Lines 1962 to 1978 in 5369694 |
Beta Was this translation helpful? Give feedback.
-
OK, So basically what I'm after is how the I am trying to go down the rabbit hole. Step IRunning the function The function creates the list of tuples: data = [
('WINPYDIR', '$EXEDIR\%s' % self.python_name),
('WINPYVER', self.winpyver),
('COMMAND', 'wscript.exe'),
('PARAMETERS', 'Noshell.vbs winvscode.bat'),
('WORKDIR', '$EXEDIR\scripts'),
('Icon', icon.ico),
('OutFile', 'VS Code.exe'),
] Step IIRunning the Basically this function edits the base It edits (If I got it right) the lines (Insert values inside the !addincludedir ""
!define COMMAND ""
!define PARAMETERS ""
!define WORKDIR ""
Icon ""
OutFile "" So !addincludedir "PathToResourcesFolder"
!define COMMAND "wscript.exe"
!define PARAMETERS "Noshell.vbs winvscode.bat"
!define WORKDIR "$EXEDIR\scripts"
Icon "PathToIcon"
OutFile "VS Code.exe" Am I right? Did I miss something? |
Beta Was this translation helpful? Give feedback.
OK, So basically what I'm after is how the
nsi
file look like just before it is compiled.I guess if someone has built the distribution it may share it?
I am trying to go down the rabbit hole.
Step I
Running the function
create_launcher()
withname = VS Code.exe
,icon = pathToIcon
,command = wscript.exe
,args = Noshell.vbs winvscode.bat
,workdir = r'$EXEDIR\scripts
andlauncher = launcher_basic.nsi
.The function creates the list of tuples: