Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i try to set the compatibility mode in Windows7 in my C# project. Normaly, it is no problem: Go to HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers and add a new REG_SZ. Name = Path (C:\test.exe), Data=WINXPSP3 (for WindowsXP SP3 compatibility)..

The Problem comes with CD/DVD. There you can't set the path with the Driveletter, but you have to set "SIGN.MEDIA=1234567" for example instead of "F:\".

Is there a way to get the SIGN.MEDIA-ID? Because it changes with every ISO-File i create and burn.

thank you

share|improve this question
    
is there an other way, to set the compatibility mode for an executable on my CD/DVD? –  Kevin Busch Jul 25 '11 at 13:51

1 Answer 1

Define an environment variable before launching your application. For example in batch:

SET "__COMPAT_LAYER=WINXPSP3"
share|improve this answer
    
Welcome to Super User. Your answer needs to be expanded. Please edit it to explain why your solution addresses the OPs question. –  Twisty Aug 26 at 16:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.