Jump to content
Ketarin forum

Official Nvidia.com site Drivers Template


Recommended Posts

Not sure why I felt like doing it but hey, I did so meh.

 

The below template will basically ask you for What Operating system you are using (from windows xp 32 to win7 x64) and whether or not it is a desktop/laptop/notebook. That's all ya need to do. The rest is maaaagic. Any troubles let me know, or general feedback is fine too.

 

FOR REFERENCE THIS IS ONLY FOR GEFORCE DRIVERS, which would account for 99% of people that I know/meet so enjoy.

 

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SourceTemplate><![CDATA[]]></SourceTemplate>
   <WebsiteUrl />
   <UserAgent />
   <UserNotes />
   <LastFileDate xsi:nil="true" />
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <SetupInstructions />
   <Variables>
     <item>
       <key>
         <string>download</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://[^'"]+exe</Regex>
           <Url>http://us.download.nvidia.com{refer2}</Url>
           <TextualContent />
           <Name>download</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>refer1</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://[^'"]+[^'"]+\.html</Regex>
           <Url>http://www.nvidia.com/Download/processDriver.aspx?{psid}&{pfid}&{osid}〈=en-us</Url>
           <Name>refer1</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>refer2</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>url=([^'"]+exe)</Regex>
           <Url>{refer1}</Url>
           <Name>refer2</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>psid</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>psid=52</TextualContent>
           <Name>psid</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>pfid</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>pfid=<placeholder name="Desktop is 299
           Laptop is 500
           Please select one of the above"
           options="299|500"/></TextualContent>
           <Name>pfid</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>osid</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>osid=<placeholder name="
           Windows XP x86 is 6
           Windows XP x64 is 7
           Windows Vista/7 x86 is 18
           Windows Vista/7 x64 is 19
           Please select one of the above"
           options="6|7|18|19" /></TextualContent>
           <Name>osid</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand>/*This is a comment line, the line below is the C# script. It will run the instructions found in the Setup Tab*/
app.Install(null);</ExecuteCommand>
   <ExecutePreCommand />
   <ExecuteCommandType>CS</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category>Driver</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation />
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath></TargetPath>
   <FixedDownloadUrl>{download}</FixedDownloadUrl>
   <Name>Nvidia Driver</Name>
 </ApplicationJob>
</Jobs>

 

EDIT: Updated template as Nvidia recently made some changes to their site.

Edited by Omniferum
Link to post
Share on other sites

Hey, Omni...I modified your template to make it a bit kinder for the end-user. Have a look:

 

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SourceTemplate>
     <![CDATA[]]></SourceTemplate>
     <WebsiteUrl />
     <UserAgent />
     <UserNotes />
     <LastFileDate xsi:nil="true" />
     <IgnoreFileInformation>false</IgnoreFileInformation>
     <DownloadBeta>Default</DownloadBeta>
     <DownloadDate xsi:nil="true" />
     <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
     <VariableChangeIndicator />
     <CanBeShared>true</CanBeShared>
     <ShareApplication>false</ShareApplication>
     <ExclusiveDownload>false</ExclusiveDownload>
     <HttpReferer />
     <SetupInstructions />
     <Variables>
       <item>
         <key>
           <string>download</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>RegularExpression</VariableType>
             <Regex>http://[^'"]+[^'"]+\.exe</Regex>
             <Url>{refer2}</Url>
             <Name>download</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>refer1</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>RegularExpression</VariableType>
             <Regex>http://[^'"]+[^'"]+\.html</Regex>
             <Url>http://www.nvidia.com/Download/processDriver.aspx?psid={psid}&pfid={pfid}&osid={osid}〈=en-us</Url>
             <Name>refer1</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>refer2</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>RegularExpression</VariableType>
             <Regex>http://[^'"]+windows[^'"]+</Regex>
             <Url>{refer1}</Url>
             <Name>refer2</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>psid</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>Textual</VariableType>
             <Regex />
             <TextualContent>52</TextualContent>
             <Name>psid</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>pfidgui</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>Textual</VariableType>
             <Regex />
             <TextualContent>
               <placeholder name="Is this driver for a desktop or laptop?" options="|Desktop|Laptop"/>
             </TextualContent>
             <Name>pfidgui</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>pfid</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>Textual</VariableType>
             <Regex />
             <TextualContent>{pfidgui:multireplace:|:Desktop|Laptop:299|500}</TextualContent>
             <Name>pfid</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>osidgui</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>Textual</VariableType>
             <Regex />
             <TextualContent>
               <placeholder name="What OS is this driver for?" options="|Windows XP x86|Windows XP x64|Windows Vista/7|Windows Vista/7 x64" />
             </TextualContent>
             <Name>osidgui</Name>
           </UrlVariable>
         </value>
       </item>
       <item>
         <key>
           <string>osid</string>
         </key>
         <value>
           <UrlVariable>
             <RegexRightToLeft>false</RegexRightToLeft>
             <VariableType>Textual</VariableType>
             <Regex />
             <TextualContent>{osidgui:multireplace:|:Windows XP x86|Windows XP x64|Windows Vista/7|Windows Vista/7 x64:6|7|18|19}</TextualContent>
             <Name>osid</Name>
           </UrlVariable>
         </value>
       </item>
     </Variables>
     <ExecuteCommand>/*This is a comment line, the line below is the C# script. It will run the instructions found in the Setup Tab*/ app.Install(null);</ExecuteCommand>
     <ExecutePreCommand />
     <ExecuteCommandType>CS</ExecuteCommandType>
     <ExecutePreCommandType>Batch</ExecutePreCommandType>
     <Category>Driver</Category>
     <SourceType>FixedUrl</SourceType>
     <PreviousLocation />
     <DeletePreviousFile>true</DeletePreviousFile>
     <Enabled>true</Enabled>
     <FileHippoId />
     <LastUpdated xsi:nil="true" />
     <TargetPath></TargetPath>
     <FixedDownloadUrl>{download}</FixedDownloadUrl>
     <Name>Nvidia Driver</Name>
   </ApplicationJob>
 </Jobs>

Link to post
Share on other sites
  • 2 months later...
No, I haven't updated to b4 yet. Still on b3, floele said he did a quick fix for b4 and it has been released twice so perhaps?

Hey-hey :D.Updated to the fixed b4 and it's working now :D

Intially i updated to the fixed b4 right away but i didn't test the import after that.Now that i did it seems to be working.Atleast importing the prototype template works.Im unable to import the one in online database tho(same error - problably brackets messed up there).As for the local ones - i can now import these too with no problem.

 

EDIT: You could use {refer1} in the website field as default in the template.It takes nicely to download page of the latest version.

Edited by Tomorrow
Link to post
Share on other sites
  • 3 months later...

Maybe this will help those who have older adapter, or who need a driver for other operating systems.

I apologize for the translation of Google.

 

Request Format:

http://www.nvidia.ru/Download/processDriver.aspx?psid=[value]&pfid=[value]&osid=[value]&lid=[value]〈=ru

psid - Index Series
pfid - index of the family
osid - index OS
lid - the index language

Steps:

Find the ID type of products from xml-specification at:
http://www.nvidia.ru/Download/API/lookupValueSearch.aspx?TypeID=1

Substitute the value found in the "ParentID" query on xml-specification product line at:
http://www.nvidia.ru/Download/API/lookupValueSearch.aspx?TypeID=2&ParentID=[value]
Obtain "psid".

Substitute the value "psid" in "ParentID" query on xml-specification product family at:
http://www.nvidia.ru/Download/API/lookupValueSearch.aspx?TypeID=3&ParentID=[value]
Obtain "pfid"

Find the ID of the operating system from the xml-spec at:
http://www.nvidia.ru/Download/API/lookupValueSearch.aspx?TypeID=4
Obtain "osid".

Find a language identifier of the xml-spec at:
http://www.nvidia.ru/Download/API/lookupValueSearch.aspx?TypeID=5
Obtain the "lid".

 

 

Example:

The answer to this query:
http://www.nvidia.ru/Download/processDriver.aspx?psid=1&pfid=5&osid=19&lid=16〈=ru

will link:
http://www.nvidia.ru/object/win7-winvista-64bit-270.61-whql-driver-ru.html

Treating it with a regex-expression was a link to download the necessary files installed graphics driver
Type GeForce 8 series, a family of 8600 Windows 7 x64 Russian version.

http://ru.download.nvidia.com/Windows/270.61/270.61-desktop-win7-winvista-64bit-international-whql.exe

Edited by latzkes
Link to post
Share on other sites
  • 2 months later...

Omniferum could you add the Beta option next version?

I found out that it's possible to get the latest beta with a slightly modified template.

 

Existing users can add a new textual variable named whql with value:

whql=0

(0 means beta;1 means whql)

 

And you need to modify the refer1 variable website address to:

http://www.nvidia.com/Download/processFind.aspx?{whql}&{psid}&{pfid}&{osid}〈=en-us

 

And you're done.Now it always matches the latest Beta version.

 

Also perhaps add the option for the user to select Product Version (psid) like ION,nForce etc?

And obviously the whql/beta option.

 

EDIT:

Infact i made a modified template myself.Try it out now:

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SourceTemplate><![CDATA[]]></SourceTemplate>
   <WebsiteUrl />
   <UserAgent />
   <UserNotes />
   <LastFileDate xsi:nil="true" />
   <IgnoreFileInformation>false</IgnoreFileInformation>
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
   <VariableChangeIndicator />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <ExclusiveDownload>false</ExclusiveDownload>
   <HttpReferer />
   <SetupInstructions />
   <Variables>
     <item>
       <key>
         <string>download</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://[^'"]+exe</Regex>
           <Url>http://us.download.nvidia.com{refer2}</Url>
           <TextualContent />
           <Name>download</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>refer1</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>http://[^'"]+[^'"]+\.html</Regex>
           <Url>http://www.nvidia.com/Download/processFind.aspx?{whql}&{psid}&{pfid}&{osid}〈=en-us</Url>
           <Name>refer1</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>refer2</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>RegularExpression</VariableType>
           <Regex>url=([^'"]+exe)</Regex>
           <Url>{refer1}</Url>
           <Name>refer2</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>psid</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>psid=52</TextualContent>
           <Name>psid</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>pfid</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>pfid=<placeholder name="Desktop is 299
           Laptop is 500
           Please select one of the above"
           options="299|500"/></TextualContent>
           <Name>pfid</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>whql</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>whql=<placeholder name="WHQL is 1
           BETA is 0
           Please select one of the above"
           options="1|0"/></TextualContent>
           <Name>whql</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>osid</string>
       </key>
       <value>
         <UrlVariable>
           <RegexRightToLeft>false</RegexRightToLeft>
           <VariableType>Textual</VariableType>
           <Regex />
           <TextualContent>osid=<placeholder name="
           Windows XP x86 is 6
           Windows XP x64 is 7
           Windows Vista/7 x86 is 18
           Windows Vista/7 x64 is 19
           Please select one of the above"
           options="6|7|18|19" /></TextualContent>
           <Name>osid</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand></ExecuteCommand>
   <ExecutePreCommand />
   <ExecuteCommandType>CS</ExecuteCommandType>
   <ExecutePreCommandType>Batch</ExecutePreCommandType>
   <Category>Driver</Category>
   <SourceType>FixedUrl</SourceType>
   <PreviousLocation />
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath></TargetPath>
   <FixedDownloadUrl>{download}</FixedDownloadUrl>
   <Name>Nvidia Driver</Name>
 </ApplicationJob>
</Jobs>

 

modnvtemplate.jpg

Edited by Tomorrow
Link to post
Share on other sites
  • 9 years 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.

Loading...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.