What causes my script to appear on Add/Remove Programs?

Started by stevengraff, July 22, 2014, 11:45:15 AM

Previous topic - Next topic

stevengraff

I just noticed that my script (compiled exe) is listed in Programs and Features (Server 08) and Add/Remove Programs (XP).

What caused this? did it happen because I installed it as a service?

Deana

It is my understanding that you would need to explicitly create a registry key here on Windows XP HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{Product} in order to have it show up in the Add/Remove Programs control panel applet.

Do you see an entry for your compiled script in the registry under this key on Windows XP?

How was the script installed exactly?

Reference:
http://msdn.microsoft.com/en-us/library/ms954376.aspx
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Installation~Licensing~Setup+Add~Remove~Programs~Example.txt
Deana F.
Technical Support
Wilson WindowWare Inc.

stevengraff

Quote from: Deana on July 22, 2014, 12:28:57 PM
It is my understanding that you would need to explicitly create a registry key here on Windows XP HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{Product} in order to have it show up in the Add/Remove Programs control panel applet.
It does appear to be there, though with a cryptic long guid type name rather than its own.

Do you see an entry for your compiled script in the registry under this key on Windows XP?
No.

How was the script installed exactly?
            fileName = dirscript(): "goldsmsSVC.exs"
            stringvalues = "%svcName% | %svcName% | %FileName% |  | %username% | %password%"
            dependencies = ""
            reserved = ""
            numericValues = "16 | 2 | 1"
            svc = wntSvcCreate("", stringvalues , numericvalues, dependencies, reserved)
            status = wntSvcStatus("", svcName, 0, 0)


Reference:
http://msdn.microsoft.com/en-us/library/ms954376.aspx
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Installation~Licensing~Setup+Add~Remove~Programs~Example.txt

stevengraff

So, I ran the uninstaller, but I have no idea what it might have uninstalled... certainly not the service I mentioned earlier.

My "application" consists of about 8 compiled scripts, plus a few other files, all of which simply get copied into place by my "installer," which, of course, is just another compiled script. The only reason I singled out the service is that that's the only thing I'm aware of that's not just a simple copy operation.

Deana

Quote from: stevengraff on July 22, 2014, 01:24:41 PM
Quote from: Deana on July 22, 2014, 12:28:57 PM
It is my understanding that you would need to explicitly create a registry key here on Windows XP HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{Product} in order to have it show up in the Add/Remove Programs control panel applet.
It does appear to be there, though with a cryptic long guid type name rather than its own.

Do you see an entry for your compiled script in the registry under this key on Windows XP?
No.

How was the script installed exactly?
            fileName = dirscript(): "goldsmsSVC.exs"
            stringvalues = "%svcName% | %svcName% | %FileName% |  | %username% | %password%"
            dependencies = ""
            reserved = ""
            numericValues = "16 | 2 | 1"
            svc = wntSvcCreate("", stringvalues , numericvalues, dependencies, reserved)
            status = wntSvcStatus("", svcName, 0, 0)


Reference:
http://msdn.microsoft.com/en-us/library/ms954376.aspx
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Installation~Licensing~Setup+Add~Remove~Programs~Example.txt

As far as I am aware the wntSvcCreate doesn't contain any explicit code to add ANY uninstall information to the Add/Remove Program control panel applet. IS it possible you have named the service the same name as an existing software program on your system?

Try giving the service a truly unique service name such MyWinbatchGoldsmsSVC. Do you still see it show up in add/remove?
Deana F.
Technical Support
Wilson WindowWare Inc.

stevengraff

My "program" is called GoldSMS. It consists of:

goldsms.exe
goldsmsConfig.exe
goldsmsAlert.exe
goldsmsPull.exe
goldsmsBlast.exe
goldsmsPullConfig.exe
goldsmsBlastConfig.exe

etc.... you get the idea.

The service is called goldsmsSvc.exe

Again, I think there's no need to focus on the service, I think that's not it. I only went there because I know how the other files got "installed," i.e. they just got copied. And I'm unfamiliar with what's going on under the hood with the installation of a service.

So... it's still a mystery.

stevengraff

I just noticed that the install date was Oct. of 2012.

My current guess is that back then I was experimenting with one or another "real" installers.

Sorry 'bout that!

etippelt

And the moral of the story is to test on virtual machines that you can roll back to a clean state when the testing is finished!!
Using Winbatch since 1995. Excellent tool, awesome support always.

stevengraff

You'll excuse me if I ask -- I'm still a little new at this -- what does "finished" mean again? :)

td

Quote from: stevengraff on July 23, 2014, 03:44:12 AM
You'll excuse me if I ask -- I'm still a little new at this -- what does "finished" mean again? :)

A scattering of ashes or a dark hole in the ground.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

etippelt

QuoteYou'll excuse me if I ask -- I'm still a little new at this -- what does "finished" mean again?

1. I'm bored with testing and the users are giving me earache, so deserve what they get....
2. I have reached retirement age.
3. The boss has returned from holiday/business trip/rehab
4. Testing - what's that ?
Using Winbatch since 1995. Excellent tool, awesome support always.

stevengraff

Anyone have a favorite amongst installers that they'd care to share? Most recently (i.e. 2 years ago) I was trying out the free version of Advanced Installer.

Do most folks just use Winbatch itself?

etippelt

Winbatch can be used for installation, but is not optimised for this purpose and of course you need the additional baggage of the embedded DLL(s), which is overkill for small installs. Corporates are pretty much left with Flexera Adminstudio since the Wise product family was end-of-lifed by Symantec. There are many other tools available either for free or for varying amounts of money, that are specifically intended for packaging applications, and include essentials such as capture tools that can handle 64 bit environments. Sure, you could probably write something similar in winbatch but I suspect it would be a lot slower than native code.
Using Winbatch since 1995. Excellent tool, awesome support always.