Groovy Modules

Write an installer to automated Windows registry manipulation for configuring the native launcher

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Native Launcher
  • Labels:
    None
  • Number of attachments :
    1

Description

Windows file association:
------------------------------------
If you want to run your groovy scripts on windows so that they seem like any other commands (i.e. if you have myscript.groovy on your PATH, you can just type myscript), do as follows:

add .groovy to PATHEXT environment variable
make changes in windows registry as follows
run regedit.exe
create a new key HKEY_CLASSES_ROOT\.groovy and give it the value groovyFile
create HKEY_CLASSES_ROOT\groovyFile
under that, create HKEY_CLASSES_ROOT\groovyFile\Shell and give it value open
under that, create HKEY_CLASSES_ROOT\groovyFile\Shell\open\command and give it value (adjust according to your groovy location) "c:\programs\groovy-1.0\bin\groovy.exe" "%1" %*

Yes, it would be nicer to have an installer do this. = )

Activity

Hide
Chris vanBuskirk added a comment -

Would someone kindly assign this to Antti Karanta, whom I'm hoping will test/review this for me.

Thanks,
Chris

Show
Chris vanBuskirk added a comment - Would someone kindly assign this to Antti Karanta, whom I'm hoping will test/review this for me. Thanks, Chris
Hide
Chris vanBuskirk added a comment -

USAGE: java -jar groovy-installer.jar

Show
Chris vanBuskirk added a comment - USAGE: java -jar groovy-installer.jar
Hide
Chris vanBuskirk added a comment -

I guess the name of the .jar file should be changed. It isn't a "groovy" installer, but rather a "native launcher" installer.

Show
Chris vanBuskirk added a comment - I guess the name of the .jar file should be changed. It isn't a "groovy" installer, but rather a "native launcher" installer.
Hide
Antti Karanta added a comment -

> I guess the name of the .jar file should be changed. It isn't a "groovy" installer, but rather a "native launcher" installer.

Well, it seems to install the whole groovy distribution (I did not try it, just looked at the contents), so I would call it groovy installer. It just contains the native launcher (which the normal distro does not) and does the windows registry manipulations (again, did not try it).

I would still like you to add the simple groovy scriptom script to the native launcher page. I don't like to add code I did not write and have not tested, so I request you as the author of the code to do that.

Having an installer for groovy is something that has come up on the mailing list a few times, so if you take up the task of creating one, I think you should ask if the people on the mailing list have an opinion on how it should work, what it should do etc.

On the other hand, if you are only addressing the native launcher, I think the scriptom script you provided is sufficient - ATM native launcher is a separate download anyway, so someone getting that can as well run the scriptom script to manipulate his registry. On the other hand, I don't think anyone will want to download and install a full groovy distro just to get the registry settings correct for the native launcher.

Show
Antti Karanta added a comment - > I guess the name of the .jar file should be changed. It isn't a "groovy" installer, but rather a "native launcher" installer. Well, it seems to install the whole groovy distribution (I did not try it, just looked at the contents), so I would call it groovy installer. It just contains the native launcher (which the normal distro does not) and does the windows registry manipulations (again, did not try it). I would still like you to add the simple groovy scriptom script to the native launcher page. I don't like to add code I did not write and have not tested, so I request you as the author of the code to do that. Having an installer for groovy is something that has come up on the mailing list a few times, so if you take up the task of creating one, I think you should ask if the people on the mailing list have an opinion on how it should work, what it should do etc. On the other hand, if you are only addressing the native launcher, I think the scriptom script you provided is sufficient - ATM native launcher is a separate download anyway, so someone getting that can as well run the scriptom script to manipulate his registry. On the other hand, I don't think anyone will want to download and install a full groovy distro just to get the registry settings correct for the native launcher.
Hide
Joachim Baumann added a comment -

The installer can be downloaded on the normal download pages.

Show
Joachim Baumann added a comment - The installer can be downloaded on the normal download pages.
Hide
Joachim Baumann added a comment -

The installer does not set PATHEXT yet. If this is really necessary, please reopen the issue.

Show
Joachim Baumann added a comment - The installer does not set PATHEXT yet. If this is really necessary, please reopen the issue.
Hide
Joachim Baumann added a comment -

Guillaume deems PATHEXT to be of importance

Show
Joachim Baumann added a comment - Guillaume deems PATHEXT to be of importance
Hide
Joachim Baumann added a comment -

Added PATHEXT

Show
Joachim Baumann added a comment - Added PATHEXT
Hide
Joachim Baumann added a comment -

PATHEXT is implemented.

Show
Joachim Baumann added a comment - PATHEXT is implemented.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: