[Pharo-project] One-click Windows comment
I set up the regular Pharo (since I managed to get that instead of the one-click), then decided to try the actual one-click. The previous one-click had a Windows shortcut ".lnk" whereas this one uses a batch file. The former is preferable, as the batch file opens a console window and leaves it open. You can close it--but that's not always the case in Windows. I created a link by using "Create shortcut" on CogVM and then copying the parameter out of the batch file, and pasting it into the "Target": [yourPharoDriveAndDir\]CogVM.exe Contents\Resources\Pharo-1.4-one-click.image ===Blake===
The ideal way would probably that .bat (or .cmd or .vbs) creates the .lnk by some ActiveX magic, runs it and quits; subseuqntly .lnk could be clicked directly. Herby blake wrote:
I set up the regular Pharo (since I managed to get that instead of the one-click), then decided to try the actual one-click.
The previous one-click had a Windows shortcut ".lnk" whereas this one uses a batch file. The former is preferable, as the batch file opens a console window and leaves it open. You can close it--but that's not always the case in Windows.
I created a link by using "Create shortcut" on CogVM and then copying the parameter out of the batch file, and pasting it into the "Target":
[yourPharoDriveAndDir\]CogVM.exe Contents\Resources\Pharo-1.4-one-click.image
===Blake===
Hi. Personally, I hate windows links :) The .bat can be have /C parameter for automatically close the open windows. Like this: start "%~dp0\CogVM.exe" "%~dp0\Contents\Resources\Pharo-1.4-one-click.image" Another little fix, the files readme.txt and OneClick.txt have line ending for Unix, and in Windows for default those are open in the Notepad, then all is showed in one line. Maybe those file can be shipped with LF+CR line end. Regards. El 20 de abril de 2012 06:49, Herby VojÄÃk <herby@mailbox.sk> escribió:
The ideal way would probably that .bat (or .cmd or .vbs) creates the .lnk by some ActiveX magic, runs it and quits; subseuqntly .lnk could be clicked directly.
Herby
blake wrote:
I set up the regular Pharo (since I managed to get that instead of the one-click), then decided to try the actual one-click.
The previous one-click had a Windows shortcut ".lnk" whereas this one uses a batch file. The former is preferable, as the batch file opens a console window and leaves it open. You can close it--but that's not always the case in Windows.
I created a link by using "Create shortcut" on CogVM and then copying the parameter out of the batch file, and pasting it into the "Target":
[yourPharoDriveAndDir\]CogVM.exe Contents\Resources\Pharo-1.4-one-click.image
===Blake===
Sorry the typo, no /C, only start at beginning. El 20 de abril de 2012 08:52, Gastón Dall' Oglio <gaston.dalloglio@gmail.com
escribió:
Hi.
Personally, I hate windows links :) The .bat can be have /C parameter for automatically close the open windows. Like this: start "%~dp0\CogVM.exe" "%~dp0\Contents\Resources\Pharo-1.4-one-click.image"
Another little fix, the files readme.txt and OneClick.txt have line ending for Unix, and in Windows for default those are open in the Notepad, then all is showed in one line. Maybe those file can be shipped with LF+CR line end.
Regards.
El 20 de abril de 2012 06:49, Herby VojÄÃk <herby@mailbox.sk> escribió:
The ideal way would probably that .bat (or .cmd or .vbs) creates the .lnk
by some ActiveX magic, runs it and quits; subseuqntly .lnk could be clicked directly.
Herby
blake wrote:
I set up the regular Pharo (since I managed to get that instead of the one-click), then decided to try the actual one-click.
The previous one-click had a Windows shortcut ".lnk" whereas this one uses a batch file. The former is preferable, as the batch file opens a console window and leaves it open. You can close it--but that's not always the case in Windows.
I created a link by using "Create shortcut" on CogVM and then copying the parameter out of the batch file, and pasting it into the "Target":
[yourPharoDriveAndDir\]CogVM.exe Contents\Resources\Pharo-1.4-one-click.image
===Blake===
There is no need for a .Ink or .bat in Windows. You can just point to the correct image in the .ini file so that users will only click on the .exe (which should be renamed to Pharo.exe, BTW). If I remember correctly, older versions of Pharo did it this way, why did it change? 2012/4/20 Gastón Dall' Oglio <gaston.dalloglio@gmail.com>
Sorry the typo, no /C, only start at beginning.
El 20 de abril de 2012 08:52, Gastón Dall' Oglio < gaston.dalloglio@gmail.com> escribió:
Hi.
Personally, I hate windows links :) The .bat can be have /C parameter for automatically close the open windows. Like this: start "%~dp0\CogVM.exe" "%~dp0\Contents\Resources\Pharo-1.4-one-click.image"
Another little fix, the files readme.txt and OneClick.txt have line ending for Unix, and in Windows for default those are open in the Notepad, then all is showed in one line. Maybe those file can be shipped with LF+CR line end.
Regards.
El 20 de abril de 2012 06:49, Herby VojÄÃk <herby@mailbox.sk> escribió:
The ideal way would probably that .bat (or .cmd or .vbs) creates the .lnk
by some ActiveX magic, runs it and quits; subseuqntly .lnk could be clicked directly.
Herby
blake wrote:
I set up the regular Pharo (since I managed to get that instead of the one-click), then decided to try the actual one-click.
The previous one-click had a Windows shortcut ".lnk" whereas this one uses a batch file. The former is preferable, as the batch file opens a console window and leaves it open. You can close it--but that's not always the case in Windows.
I created a link by using "Create shortcut" on CogVM and then copying the parameter out of the batch file, and pasting it into the "Target":
[yourPharoDriveAndDir\]CogVM.exe Contents\Resources\Pharo-1.4-one-click.image
===Blake===
On Fri, Apr 20, 2012 at 12:32 PM, Ricardo Moran <richi.moran@gmail.com> wrote:
There is no need for a .Ink or .bat in Windows. You can just point to the correct image in the .ini file so that users will only click on the .exe (which should be renamed to Pharo.exe, BTW).
If I remember correctly, older versions of Pharo did it this way, why did it change?
I would've sworn I recently downloaded a one-click that had a .LNK--that was where I got the idea to do it for this one. It even referenced the .LNK in the readme.bat. That said, I have the Pharo-1.3-13315-OneClick.zip file handy here, and it does just use an .INI file and tell Windows users to just click on the pharo.exe. So, I think all possible ways of starting Pharo have been explored at this point. :-) ===Blake===
blake wrote:
On Fri, Apr 20, 2012 at 12:32 PM, Ricardo Moran <richi.moran@gmail.com> wrote:
There is no need for a .Ink or .bat in Windows. You can just point to the correct image in the .ini file so that users will only click on the .exe (which should be renamed to Pharo.exe, BTW).
If I remember correctly, older versions of Pharo did it this way, why did it change?
I would've sworn I recently downloaded a one-click that had a .LNK--that was where I got the idea to do it for this one. It even referenced the .LNK in the readme.bat.
That said, I have the Pharo-1.3-13315-OneClick.zip file handy here, and it does just use an .INI file and tell Windows users to just click on the pharo.exe.
So, I think all possible ways of starting Pharo have been explored at this point. :-)
===Blake===
The INI file next to the EXE appears to be missing ImageFile=Contents\Resources\Pharo-1.4-one-click.image btw Though I don't have an opinion either way, I am curious about the change of the image name from just Pharo-1.4.image, in case I can learn something about the management of such things. cheers -ben
participants (5)
-
Ben Coman -
blake -
Gastón Dall' Oglio -
Herby VojÄÃk -
Ricardo Moran