Jump to content

run inf on xp build .2180


gareththegod

Recommended Posts

I am trying to make an inf file that will only work on windows xp sp2 RTM build (2180)

I know that its something that has to go under the version sections but I can't find out anything about it.

[version]
signature="$CHICAGO$"

[DefaultInstall]
AddReg = File, Add.Uninstall
CopyFiles = Gotoinf

[DefaultUninstall]
DelReg = Del.Registry
DelFiles = Gotoinf

[File]
; changes .reg files to open not merge.
HKCR,"%Reg%\shell",,,"edit"

; changes .cmd files to edit not open/run.
HKCR,"%Cmd%\shell",,,"edit"

; changes .bat files to edit not open/run.
HKCR,"%Bat%\shell",,,"edit"

[Add.Uninstall]
HKLM,%Uninstall%,DisplayName,,"%AppDesc%"
HKLM,%Uninstall%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %17%\%thisfile%"

[Del.Registry]
; changes .reg files to merge not open.
HKCR,"%Reg%\shell",,,""

; changes .cmd files to open/run not edit.
HKCR,"%Cmd%\shell",,,""

; changes .bat files to open/run not edit.
HKCR,"%Bat%\shell",,,""

HKLM,"%Uninstall%"


[DestinationDirs]
Gotoinf = 17;windows\inf

[Gotoinf]
%thisfile%

[STRINGS]
Reg = regfile
Cmd = cmdfile
Bat = batfile

Current = "Software\Microsoft\Windows\CurrentVersion"
Explorer = "Software\Microsoft\Windows\CurrentVersion\Explorer"

Uninstall   = "Software\Microsoft\Windows\CurrentVersion\Uninstall\%thisfile%"
thisfile    = "change.inf"
AppDesc     = "Change File Associations reg, bat, cmd"

I want to try a file so that it will only apply registry settings or install applications like the support tools.

i think that it might be build= 2180 to go under version but i could be wrong.

Link to comment
Share on other sites


sorry i mean something like this

[version]
signature="$CHICAGO$"
; Bulid=2600; <-- This is what I mean. Can this be used?
; Minorversion=2180; <-- This is what I mean. Can this be used?

[DefaultInstall]
AddReg = File, Add.Uninstall

The two things that are commented out in the [version] I think that ive seen this in an inf file but I can't remember if this is correct or where I found it.

Would gosh be able to help??

Link to comment
Share on other sites

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...