You are here

Possible Winamp Launcher

11 posts / 0 new
Last post
Devo
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-09-04 14:55
Possible Winamp Launcher

I need a little help writing a batch file. I'm using winamp on my flash drive and it requires 1 registry entry to check if it is the pro version or not. I would like the batch file to:

1. backup the current winamp registry entry if it exists
2. apply my registry entry
3. start winamp
then when winamp is closed
4. delete my registry entry
5. and apply the backed up registry if it existed.

I know nothing about programming or even writing a batch file, but this almost seems like a launcher. I know that someone wrote a launcher for winamp awhile back, but the file no longer exists. If someone could either modify a launcher to perform these tasks or point me in the right direction where I could learn to do this myself I would appreciate it. Thanks.

Aciago
Aciago's picture
Offline
Last seen: 6 months 5 days ago
Joined: 2007-01-24 14:23
The right direction...

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

haustin
Offline
Last seen: 12 years 7 months ago
Joined: 2007-09-19 17:59
Straight from Winamp.com ...

A "Forum King" gets into all the ins and outs of portable Winamp in this thread.

Supposedly, no batch file or launcher needed.

-hea

Devo
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-09-04 14:55
Still a reg entry

Thanks for the help, but I've already looked at those. I've got the full version on my plash drive the way that was given in the Winamp forums. Nothing is written to the computer except for a single registry entry. This entry has the information containing the pro registration. I've posted a couple times on the winamp forums about this entry and there is no way to get around it. That is why, I need some kind of launcher or batch file. Any ideas?

John Bentley
John Bentley's picture
Offline
Last seen: 14 years 8 months ago
Developer
Joined: 2006-01-24 13:26
In a batch file you have 2

In a batch file you have 2 options.

1. use reg import file.reg and reg export KEY file.reg /y

This option works on XP and Vista with limited user privliges.

2. use regedit /s file.reg and regedit /e file KEY

This option works on 95?-Vista BUT requres admin privs on vista. It also may be blocked on locked down computers.

There are lots of other options for the REG command. Check them out on the command prompt. (reg /?)

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Devo
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-09-04 14:55
Is there a way I can look at

Is there a way I can look at the code written in a launcher and just modify it? Keep in mind I have no idea about writing programs, so I would kind of need to be walked through it.

Aciago
Aciago's picture
Offline
Last seen: 6 months 5 days ago
Joined: 2007-01-24 14:23
Yes

check the other folder in any PortableApp.com and choose which one fits your App, I did it with mIRC and CCleaner some time ago (when there was no portable version) and it worked... and I'm a Veterinarian, no idea about programming... Wink

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

Devo
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-09-04 14:55
What program do I need to

What program do I need to view the code?

Aciago
Aciago's picture
Offline
Last seen: 6 months 5 days ago
Joined: 2007-01-24 14:23
.

notepad, just open the nsis file

If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report Biggrin

Nathan9222
Nathan9222's picture
Offline
Last seen: 2 years 6 months ago
Developer
Joined: 2007-12-06 22:35
Use....

use Notepad++ Portable its really helpful when u make a Nsis script. Just drag and drop the script in there.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

Devo
Offline
Last seen: 5 months 2 weeks ago
Joined: 2007-09-04 14:55
Ok, so I've been using the

Ok, so I've been using the PuttyPortable nsi file and updating it for use with winamp. I have a question about the registry part of the file. There are two different folders in the Winamp reg, HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft and HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft\Winamp. Which folder do I need to place in the settings folder, Nullsoft or Winamp? I not really sure. Also, after I've finished changing the nsi file and the installer nsi, how do I compile it to run as an exe and extract all the needed folders? And what do I need to change to get the exe name right? Sorry about all this, but this is the first time I've ever tried any of this.

Edit: I think I've figured out the registry stuff. I backed up HKEY_LOCAL_MACHINE\SOFTWARE\Nullsoft and saved it as winamp.reg I placed it in the winamp folder for now but I will move it to \Data\settings. I'm also pretty sure I changed all the entries in the nsi file to reflect that.

Edit: So I've figured out how to compile it and everything. The only problem I have now is that the portable launcher doesn't use the reg entry in the \Data\settings folder. It backups the reg file that is there as winamp.reg.old and creates a new one. Is there a way to stop this? I have no idea why it's doing this.

Log in or register to post comments