Jump to content

INF windows 7 x64


Alpha_95

Recommended Posts

Hello,

How to create a file that is compatible across all platforms (x86 and x64)?


[SourceDisksNames]
1 ="STEAM Files","STEAM.CAB",,"i386"
2 = "STEAM Files x64","STEAM.CAB",,"AMD64"

I tested this, but Windows 7 x64, I return the error: invalid data and yet it installs and uninstalls correctly ....

Cordially

Edited by Alpha_95
Link to comment
Share on other sites

How to create a file that is compatible across all platforms (x86 and x64)?


[SourceDisksNames]
1 ="STEAM Files","STEAM.CAB",,"i386"
2 = "STEAM Files x64","STEAM.CAB",,"AMD64"

[DefaultInstall.ntx86]
;......

[DefaultInstall.ntia64]
;.......

[SourceDisksNames.x86]
1 ="STEAM Files","STEAM.CAB",,"i386"

[SourceDisksNames.ia64]
2 = "STEAM Files x64","STEAM.CAB",,"AMD64"

[SourceDisksFiles.x86]
;;;;;;;;

[SourceDisksFiles.ia64]
;......


;Registry
http://www.wincert.net/forum/index.php?/topic/8116-dxintegrator-entriesini-syntax/
REG_SZ_NOCLOBBER_64BITKEY = 0x00001002
REG_SZ_NOCLOBBER_32BITKEY = 0x00004002
ect ect ect

download and view one of the true addon windows 7, all are compatible in Windows x86 and x64, for example look at the Unlocker True Addon

http://www.wincert.net/forum/index.php?/forum/190-windows-7/

however, for more see here

http://msdn.microsoft.com/en-us/library/ff547478%28v=VS.85%29.aspx

http://msdn.microsoft.com/en-us/library/ff547472%28v=VS.85%29.aspx

http://msdn.microsoft.com/en-us/library/ff547356%28v=VS.85%29.aspx

Ciao.

Edited by OnePiece
Link to comment
Share on other sites

What onepiece said, but change .ia64 to .amd64

Hi ricktendo64, You're right, I wrote everything in race

Thanks

You also need to change 16422 (%programfiles%) to point to 16426 (%programfiles(x86)%) and get rid of the special defaultinstall trick install

perfect in this case and 16425, working in both x86 and x64

Ciao.

Edited by OnePiece
Link to comment
Share on other sites

Thanks for answer but doesn't works for me...

I managed but not completely lol

It installs many files but I have no window asking me if I want to install the inf file and the shortcut icons are not displayed: s and files are not copied to %programfiles(x86)%\Steam Utilities


[Version]
Signature=$Windows NT$

[Optional Components]
STEAMU

[STEAMU]
OptionDesc = "Utilitaires STEAM"
Tip = "Quelques utilitaires STEAM (Défragmentation, Vérification des fichiers, forcer le mise à jour de steam)."
Modes = 0,1,2,3
copyfiles = steam.Copy.amd64,steam.Copy.x86
AddReg = STEAM.AddReg
DelReg = Tweaks.DelReg
ProfileItems = Defrag.ShortCut,Check.ShortCut,MAJ.Shortcut,SCAN.Schorcut,8cores.ShortCut,forum.ShortCut

[DefaultInstall.ntx86]
BeginPrompt = BeginInsPrompt
Runpresetupcommands = Create.i386:1
copyfiles = @steam.inf,steam.Copy.x86
AddReg = STEAM.AddReg
DelReg = Tweaks.DelReg
ProfileItems = Defrag.ShortCut,Check.ShortCut,MAJ.Shortcut,SCAN.Schorcut,8cores.ShortCut,forum.ShortCut
RunPostSetupCommands = Delete.i386
EndPrompt = EndInsPrompt

[DefaultInstall.ntamd64]
BeginPrompt = BeginInsPrompt
Runpresetupcommands = Create.i386:1
copyfiles = @steam.inf,steam.Copy.amd64
AddReg = STEAM.AddReg
DelReg = Tweaks.DelReg
ProfileItems = Defrag.ShortCut,Check.ShortCut,MAJ.Shortcut,SCAN.Schorcut,8cores.ShortCut,forum.ShortCut
RunPostSetupCommands = Delete.i386
EndPrompt = EndInsPrompt

[pnf.file]
steam.pnf

[Sysoc.clean]
%17%\sysoc.inf,Components,STEAMU=*

[Folder.del.ntx86]
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%11%\UtilitairesSteam.dll"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\Defrag.url"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\Verifier Fichiers.url"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\MAJ_STEAM.bat"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\Scan.url"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam"""

[Folder.del.ntx64]
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%11%\UtilitairesSteam.dll"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\Defrag.url"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\Verifier Fichiers.url"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\MAJ_STEAM.bat"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam\Scan.url"""
"rundll32.exe advpack.dll,DelNodeRunDLL32 ""%16422%\Utilitaires Steam"""

[BeginInsPrompt]
Title ="%TitlePrmpt%"
Prompt ="%BegPrmpt%"
ButtonType =YESNO

[EndInsPrompt]
Prompt="%EndPrmpt%"

[Create.i386]
"CMD /Q /C MD ""%1%\i386"" & COPY /D /Y ""%1%\STEAM.CAB"" ""%1%\i386"" & COPY /D /Y ""%1%\steam.inf"" ""%1%\i386"""

[Delete.i386]
RUNDLL32 advpack.dll,DelNodeRunDLL32 %1%\i386,8

[Tweaks.DelReg]
HKCU,"%SMWCV%\Explorer\MenuOrder\Start Menu2"
HKCU,"%SMWCV%\Explorer\MenuOrder\Start Menu2\Programs"

[DefaultUninstall]
BeginPrompt = BeginUnInsPrompt
DelFiles = PNF.File,steam.Copy.amd64,steam.Copy.x86
ProfileItems = Defrag.DelShortCut,Check.DelShortCut,MAJ.DelShortcut,SCAN.DelSchorcut
DelReg = Tweaks.DelReg,STEAM.AddReg
DelDirs = Folder.del.ntx64,Folder.del.ntx86
EndPrompt = EndUnInsPrompt
UpdateInis = Sysoc.clean
Cleanup = 1


[BeginUnInsPrompt]
Prompt =%UninsQuest%
Title =%UninsTitle%
ButtonType =YESNO

[EndUnInsPrompt]
Prompt =%UninsFinal%

[SourceDisksNames.x86]
1 ="STEAM Files","STEAM.CAB",,"i386"

[SourceDisksNames.amd64]
2 = "STEAM Files x64","STEAM.CAB",,"i386"

[DestinationDirs]
pnf.file = 17
DefaultDestDir = 17
steam.Copy.amd64 = 16422,%US%
steam.Copy.x86 = 16422,%US%

[SourceDisksFiles]
MAJ_STEAM.bat=1
Defrag.url=1
Scan.url=1
Verifier Fichier.url=1
UtilitairesSteam.dll=1

[SourceDisksFiles.ntamd64]
MAJ_STEAM.bat=2
Defrag.url=2
Scan.url=2
Verifier Fichier.url=2
UtilitairesSteam.dll=2


[steam.Copy.amd64]
Defrag.url
MAJ_STEAM.bat
Scan.url
Verifier Fichier.url
UtilitairesSteam.dll

[steam.Copy.x86]
Defrag.url
MAJ_STEAM.bat
Scan.url
Verifier Fichier.url
UtilitairesSteam.dll

[8cores.ShortCut]
Name = "8Cores.fr",8,25
URL = "http://www.8cores.fr/"
InfoTip = "Permet d'accéder au Site de la MultiGaming OctoCores"
IconPath = 16422,"%US%",UtilitairesSteam.dll
IconIndex = 1

[forum.ShortCut]
Name = "Forum 8Cores.fr",8,25
URL = "http://www.forum.8cores.fr/"
InfoTip = "Permet d'accéder au Forum de la MultiGaming OctoCores"
IconPath = 16422,"%US%",UtilitairesSteam.dll
IconIndex = 1

[Defrag.ShortCut]
Name = Defrag,8,25
CmdLine = 16422,%US%,Defrag.url
WorkinDir = %US%
InfoTip = "Permet de défragmenter les fichiers STEAM."
IconPath = 16422,"%US%",UtilitairesSteam.dll
IconIndex = 2

[Defrag.DelShortCut]
Name = Defrag,0xA,25

[Check.ShortCut]
Name = "Verifier Fichier",8,25
CmdLine = 16422,%US%,Verifier Fichier.url
WorkinDir = %US%
InfoTip = "Vérifie l'intégralités des fichiers STEAM."
IconPath = 16422,"%US%",UtilitairesSteam.dll
IconIndex = 2

[Check.DelShortCut]
Name = "Verifier Fichier",0xA,25

[MAJ.Shortcut]
Name = "MAJ STEAM",8,25
CmdLine = 16422,%US%,MAJ_STEAM.bat
WorkinDir = "%US%"
InfoTip = "Force la mise à jour de STEAM."
IconPath = 16422,"%US%",UtilitairesSteam.dll
IconIndex = 2

[MAJ.DelShortcut]
Name = "MAJ STEAM",0xA,25

[SCAN.Schorcut]
Name = "Scan",8,25
CmdLine = 16422,%US%,Scan.url
WorkinDir = %US%
InfoTip = "Analyse le matériel de votre PC (Peu fiable)."
IconPath = 16422,"%US%",UtilitairesSteam.dll
IconIndex = 2

[SCAN.DelSchorcut]
Name = "Scan",0xA,25

[steam.DelReg]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Utilitie_Steam"

[STEAM.AddReg]
HKLM,%RemoveMe%,"DisplayName",0x0,"Utilitie Steam"
HKLM,%RemoveMe%,"Comments",0x0,"Tous droits réservés"
HKLM,%RemoveMe%,"Contact",0x0,"8cores@8cores.fr"
HKLM,%RemoveMe%,"DisplayIcon",0x0,"%16422%\%US%\UtilitairesSteam.dll,0"
HKLM,%RemoveMe%,"DisplayName",0x0,"%US% %Version%"
HKLM,%RemoveMe%,"InstallLocation",0x0,"%16422%\%US%"
HKLM,%RemoveMe%,"NoModify",0x10001,01,00,00,00
HKLM,%RemoveMe%,"NoRepair",0x10001,01,00,00,00
HKLM,%RemoveMe%,"Publisher",0x0,"Owned"
HKLM,%RemoveMe%,"UninstallString",,"rundll32.exe advpack.dll,LaunchINFSection %17%\steam.inf,DefaultUninstall"
HKLM,%RemoveMe%,"URLInfoAbout",0x0,"http://www.8cores.fr"

[Strings]
Version = "1.0.0.1"
RemoveMe = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Utilitie_Steam"
SMWCV = "SOFTWARE\Microsoft\Windows\CurrentVersion"
US = "Utilitaires Steam"
TitlePrmpt = "Owned Software Installateur"
BegPrmpt = "Voulez-vous intaller Utilitaires Steam sur votre ordinateur ?"
EndPrmpt = "Félicitations ! Utilitaires Steam a été installé avec succès."
UninsTitle = "Owned Software Désinstallateur"
UninsQuest = "Voulez vous désinstaller Utilitaires Steam ?"
UninsFinal = "Utilitaires Steam a été desinstallé!"

Edited by Alpha_95
Link to comment
Share on other sites

are you sure that windows 7 x64 and advpack.dll which installs your. inf

INF advanced options, which supports

RegisterOCXs = RegisterOCXsSection
UnregisterOCXs = RegisterOCXsSection
BeginPrompt = BeginPromptSection
EndPrompt = EndPromptSection
RunPreSetupCommands = RunPreSetupCommandsSection
RunPostSetupCommands = RunPostSetupCommandsSection
DelDirs = DelDirsSection

because in my opinion maybe you and setupapi which attempts to install the. inf that does not support these options, you need to use the INF RegisterDlls Directive in this case

http://msdn.microsoft.com/en-us/library/ff547460%28v=VS.85%29.aspx

http://msdn.microsoft.com/en-us/library/ff547388%28v=VS.85%29.aspx

Ciao.

Edited by OnePiece
Link to comment
Share on other sites

Merry New Year.

Thanks, Happy New Year, to you too

ok but it gets too technical to understand by translating with google.

When clicked manually Install in the file. inf, in Windows 7 x64, maybe setupapi.dll trying to install the inf file, not the advpack.dll

run the installation using file .cmd, to be sure, and that advpack.dll that installs your inf file

rundll32.exe advpack.dll, LaunchINFSection name.inf

Ciao.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...