Jump to content

Recommended Posts

Posted
And hey, does anyone have any idea about what's up with this?

Executing this at the command-line:

rundll32 setupapi,InstallHinfSection DefaultInstall 128 "%ProgramFiles%\any\any.inf"

That returns an error box saying "Installation failed". I'm sure the INF is proper, and that it used to work previously. Only now, suddenly it is acting up like this - could XPSP2 have something to with this? (different entry-points, etc.?)

Solved it with MCT!

It looks like having quotes in the path to the INF caused the problem. So now ya know it. :P


Posted

Okay, now the below is for opera:

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe]
@="Opera"
"LocalizedString"="Opera"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\DefaultIcon]
@="C:\\Program Files\\Opera75\\opera.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Opera.exe\shell\open\command]
@="C:\\Program Files\\Opera75\\opera.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Opera.exe]
@="C:\\Program Files\\Opera75\\Opera.exe"
"Path"="C:\\Program Files\\Opera75"

Calling the .REG to INF gurus. ;)

Thanks in advance.

Posted

That's the exact same way I used to install Firefox 0.9.3 (Ok, a couple minor differences, I was importing the uninstall info too and other minor things). But it's so easy making a unattended installer (change setup.exe and edit a couple lines in a ini file), and even then, SiMoNsAyS' installer rocks. I don't see any practical advantage of using this method anymore. (Other than perhaps using optimized binaries or special cases?) But I guess it's nice to have more options... (and personally, I much prefer importing the .reg files than using .inf conversions - but that's mostly a matter of preferences I guess)

Posted
And hey, does anyone have any idea about what's up with this?

Executing this at the command-line:

rundll32 setupapi,InstallHinfSection DefaultInstall 128 "%ProgramFiles%\any\any.inf"

That returns an error box saying "Installation failed". I'm sure the INF is proper, and that it used to work previously. Only now, suddenly it is acting up like this - could XPSP2 have something to with this? (different entry-points, etc.?)

Solved it with MCT!

It looks like having quotes in the path to the INF caused the problem. So now ya know it. :P

I have issues running it even with no quotes (for example, I try running it straight from c:\ and just call

rundll32 setupapi,InstallHinfSection DefaultInstall 128 c:\mozilla.inf

Any idea?

Also, can you try calling just the individual Firefox and Thunderbird sections to make sure they work right?

Posted
I have issues running it even with no quotes (for example, I try running it straight from c:\ and just call
rundll32 setupapi,InstallHinfSection DefaultInstall 128 c:\mozilla.inf

Any idea?

You could try this

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 "%ProgramFiles%\any\any.inf"

The main bit being the 132 instead of 128

Posted

Bingo, the 132 did it. I'm going to make a few changes to the INF, and I'll post it here in a bit.

The nice thing about the way I've got it set up is that it's very easy to update when new versions come out. All the user will have to do is edit the string(s) at the bottom and they're done.

Posted

Alright, check this out. I made it more customizable, so you can now specify independent versions and locales. The INF called be called in a few different ways:

Both Firefox & Thunderbird Installed

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 "path\to\mozilla.inf"

Only Firefox Installed

rundll32.exe setupapi.dll,InstallHinfSection Firefox 132 "path\to\mozilla.inf"

Only Thunderbird Installed

rundll32.exe setupapi.dll,InstallHinfSection Thunderbird 132 "path\to\mozilla.inf"

The INF has a [strings] section which can be customized as newer versions are released or if users want to specify a locale other than US English. The string names should be pretty self-explanatory.

[Strings]
;DO NOT EDIT THESE STRINGS
Clients="SOFTWARE\Clients"
MozKey="SOFTWARE\Mozilla"
Firefox="Mozilla Firefox"
Thunderbird="Mozilla Thunderbird"

;EDIT THESE AS NEEDED
FxLocale="(en-US)"
FxVersion="1.0"
GeckoVersion="1.0.1"
MozVersion="1.7.5"
TbLocale="(en)"
TbVersion="0.9"

Now who wants to confirm that this all works as it's supposed to? prathapml, I'm looking your way :P

mozilla.inf

Posted
Hey, the prev INF by you worked fine, when I removed the quotes. Once I get home, I'll test the second one with that 132 stuff.

Yeah, this one's just a bit cleaned up and more flexible than the last one.

EDIT: I just upped a newer version which allows the user to change the Mozilla Version and Gecko Version numbers.

Posted
Which quotes?
The quotes around the path_to_file :
"%ProgramFiles%\any\any.inf"
        -becomes-
%ProgramFiles%\any\any.inf

@RyanVM

Okay, I'll test the 2nd INF. BTW, there were a few additions to be made to the INF, and a few corrections to be done to the <Add to start-menu> part. Do come on IM to clear those out.

Posted

mmmm....... (I'm not complaining, just notifying what needed to be changed)

some comments were needed, and then the protocols section was located in the wrong place (in both the 1`st and 2nd INF). Here's the corrected version. And also, the .reg below needs to be added to the INF!

MOZ-Missed out.reg:
(please add these keys as well, to the corrected INF that I've attached.)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird\InstallInfo]
"IconsVisible"=dword:00000000
"ReinstallCommand"="\"C:\\Program Files\\Mozilla\\Thunderbird\\thunderbird.exe\" -silent -nosplash -setDefaultMail"

Thanks for your efforts - this one's gotta be the simplest way to install Moz ff/tb.

And then, Could you make an INF of the Opera code that I've posted above as well?

mozilla.inf

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...