albu77

New Member
Joined
Feb 17, 2011
Messages
2
I had for some time an application written to write configuration on a SD Card for an external device . For doing that I give to the user the possibility to format the SD volume:
With Xp I had no problem, with Seven I have messages telling me I don't have the right to do this operation.
Is there an obligation to sign the exe and how?
Could it be changed by the way we install the software on the customer computer?
Regards
Alain
 

Solution
When you encounter issues with formatting an SD card on Windows 7 due to permission errors, it is likely related to the User Account Control (UAC) settings in Windows 7. Here are some insights and solutions to address this problem:

User Account Control (UAC) and Permissions:​

  1. UAC Settings: User Account Control in Windows 7 restricts the permissions of certain actions to prevent unauthorized changes to the system.
  2. Elevated Privileges: To format drives, including SD cards, elevated privileges are required. Standard users may face permission errors.

Solutions:​

  1. Run as Administrator:
    • Right-click on the application executable.
    • Select "Run as administrator" to run the application...
When you encounter issues with formatting an SD card on Windows 7 due to permission errors, it is likely related to the User Account Control (UAC) settings in Windows 7. Here are some insights and solutions to address this problem:

User Account Control (UAC) and Permissions:​

  1. UAC Settings: User Account Control in Windows 7 restricts the permissions of certain actions to prevent unauthorized changes to the system.
  2. Elevated Privileges: To format drives, including SD cards, elevated privileges are required. Standard users may face permission errors.

Solutions:​

  1. Run as Administrator:
    • Right-click on the application executable.
    • Select "Run as administrator" to run the application with elevated privileges.
    []Manifest File:
    • Include a manifest file in your application to request elevated privileges by default.
    [
    ]Compatibility Mode:
    • Set the application to run in compatibility mode for Windows XP:
      • Right-click the application executable.
      • Go to Properties > Compatibility.
      • Check "Run this program in compatibility mode for" and select "Windows XP."
    []Code Signing:
    • While code signing is not a direct solution to the permission issue, it can improve trust and security. Sign your executable using a code signing certificate:
    [
    ]Installation Process:
    • During installation, you can set certain permissions and elevation levels:
      • Modify the application installer to request elevated privileges during installation.
      • Ensure proper permissions are set for the installation directory. By implementing these suggestions, you should be able to address the permission issues related to formatting an SD card on Windows 7. If you have further questions or need more detailed guidance on any specific solution, feel free to ask.
 

Solution
Back
Top