Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 877503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:37:13+00:00 2026-05-15T11:37:13+00:00

i try installing a driver in a Windows 7 x64 environment, by using cmd,

  • 0

i try installing a driver in a Windows 7 x64 environment, by using cmd, and a nsis installer made from a script

from cmd i do for example:

 InfDefaultInstall C:\kit\driver\win7-64\my_driver.inf

from nsis i do (this is the line from the script):

 Exec 'InfDefaultInstall $INSTDIR\driver\win7-64\my_driver.inf'

the inf file should copy a .sys file in the Windows\system32\drivers folder and write some stuff in the registry

problem is, that it happens in cmd, and it doesn’t happen if using nsis installer (i mean it appears like it’s doing it, but the .sys file doesn’t go where it should go)

also, at uninstall i do from the nsis script:

Delete '$WINDIR\system32\drivers\my_driver.sys'

this command doesn’t delete the sys file (which went where it should because i ran the cmd line command AFTER the installation)

==

all tests done running with an administrator account, UAC disabled, also tried right click run as admin on the installer, but it just won’t copy it

==

i tried this on windows xp

Exec 'rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 $INSTDIR\driver\win7-64\my_driver.inf'

and works perfectly (from cmd and the nsis script)

also tried this command on win7 and i got same not working results.
ALSO tried it on vista x86, so i don’t think it’s an architecture problem, but something like permissions, or uac-related (although uac is not enabled)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:37:14+00:00Added an answer on May 15, 2026 at 11:37 am

    I doubt it matters in your case, but you should be quoting your paths: Exec 'InfDefaultInstall "$INSTDIR\driver\win7-64\my_driver.inf"' etc

    You should include the x64.nsh file and call the DisableX64FSRedirection macro (You probably also want to use $sysdir and not $WINDIR\system32)

    As far as the InfDefaultInstall command goes, maybe the current/working directory matters, you can set it in nsis with SetOutPath

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I try installing anything using gem, I get this error - murtaza@murtaza-dev:~$ sudo
I have successfully made an application but whenever I try installing it in the
I am installing Zend framework in Ubuntu 12.04. When I try to create a
After installing capybara-webkit, I tried to try a test inside a spec, here is
I am trying to set up Ruby on Rails on windows. I am using
On a fresh Rackspace instance, I try installing RVM with this: bash -s stable
Setup: Windows 7 64-bit Office 2010 Professional 64-bit Visual Studio 2010 Professional Using Connection
Ok I thought I'd try installing the latest and greatest LAMP stack on my
I am try to installing Drupal-6.2.4 on XAMP . I created db named drupal_6_2_4
I try to install the mysql2 gem on Windows 7 32-bit. I run: gem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.