Old 29th June 2020, 03:31   #1
Mark Nascimento
Join Date: Jul 2006
Posts: 82
Shortcut - 'start in' box

CreateShortCut "$smprograms\Disco\CDMenu.lnk" "$exedir\Disco\CDMenu\CDMenuProEd.exe"

How to fill the "start in" ? I never found a way. With this link property box empty, the CDMenu always starts in Russian.
When I fill the start in box with the full path (without the executable, of course) it starts in the language I configured the program, lets say English.

Another software that needs a "start in" is CheMax.exe. without this, the software shows
"ERROR 0x0001 Please reinstall"

How to fill the "start in" box of the link properties using nsis?

(I am Brazilian so 'start in' may be a wrong translation from 'Iniciar em')
Mark Nascimento is offline   Reply With Quote
Old 29th June 2020, 10:00   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
SetOutPath controls the start in directory.

But if your software does not work without it, your software is broken! The user could start it in other ways that does not set the current directory to what you expect.

Also, $smprograms\Disco is not going to exist on other systems, you need to create this directory before you create the shortcut.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th June 2022, 23:26   #3
Junior Member
Join Date: Mar 2011
Posts: 13
Hi, Mark Nascimento.
I am you.
Lost pw and stuff, so I have new username. But older.

Btw I found a workaround for these two softwares, CDMenu and chemax.
I created a simple shortcut in its same folder, filling where to start from.
So, instead of creatingashortcut, I copy the windows shortcut to the startmenu I want.

CopyFiles "$ExeDir\CheMax\CheMax.lnk" "$smprograms\Games"
papaimark is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump