Eagle710 Posted November 10, 2008 Posted November 10, 2008 I want to run an .EXE file in WinPE 2.0 that when used in regular VIsta I would have to change the Compatibility mode to Windows XP. Any advice on a command line tool that can do this or a work around?
Tripredacus Posted November 10, 2008 Posted November 10, 2008 Have you already tested it in the WinPE 2.0? Its not exactly Vista, so it might work just fine.
Eagle710 Posted November 10, 2008 Author Posted November 10, 2008 I have tried to run the application and does the same as it would in Vista. It simply doesn't do anything.
Tripredacus Posted November 11, 2008 Posted November 11, 2008 (edited) Has anyone determined if the WinPE supports the Application Compatibility Toolkit? the good news is the kit will allow you to create a database for all of the application and then just deploy the 1 database to all of your machines. I do not know of a way to batch upload all of the executables into the AppCompatKit. Thus you only need to set this up for 100 applications once then you can deploy to your 300 machines.http://technet.microsoft.com/en-us/windows...a/aa905078.aspxI copied these instructions from KB article 820252 and modified them.http://support.microsoft.com/kb/820252To create a custom Application Compatibility database:1. Install and run the Compatibility Administrator tool (add the /x switch to the command line for advanced features). 2. Right-click Custom Database, and then click New. 3. Right-click the new database, and then click Rename. 4. Type 100Apps (or whatever you want) as the name of the database. 5. Right-click New Database, click Create New, and then click Application Fix. Type "App1" or the name of the program to be fixed . 6. Type the name of the program manufacturer. 7. Locate and then click the appropriate program (.exe) file. 8. Click Next. 9. In the Compatibility Modes window, click Windows XP Service Pack 2 and then click Next. 10. Continue to add fixes to the same database.11. Click either Test Run or Finish. Clicking Test Run starts the program with the Application Compatibility setting. Clicking Finish adds the compatibility fix to your database. 12. On the File menu, click Save to save the database. Or, copy the database to the C:\Windows\AppPatch folder. 13. Right-click the database, and then click Install. Or, run the sdbinst c:\windows\apppatch\100apps.sdb -q command to install the database.14. run the sdbinst c:\windows\apppatch\100apps.sdb -u -q command to un-install the database in your uninstall procedurehttp://forums.microsoft.com/TechNet/ShowPo...0&SiteID=17 Edited November 11, 2008 by Tripredacus
Eagle710 Posted November 11, 2008 Author Posted November 11, 2008 (edited) I followed these steps .... I created an AppPatch folder in the mounted Windows directory and ran the install command. The application still didn't run. Not sure what I am missing. Do i have to install the pack into my mounted image? Edited November 11, 2008 by Eagle710
TheReasonIFail Posted November 11, 2008 Posted November 11, 2008 What file are you trying to run? Maybe there are some missing files needed for it to run properly.
Eagle710 Posted November 12, 2008 Author Posted November 12, 2008 Its hard to explain but a self encrypted USB key....
Tripredacus Posted November 12, 2008 Posted November 12, 2008 I followed these steps .... I created an AppPatch folder in the mounted Windows directory and ran the install command. The application still didn't run. Not sure what I am missing. Do i have to install the pack into my mounted image?Copy the SDB and SDBINST into your PE WIM. You might want to run Depends on SDBINST to see if it requires any files that aren't in the PE. If so copy those in there too. If any are OCX or DLL you might have to run regsvr32 before running the command down there.Boot into the PE.So run this command from your PEsdbinst c:\windows\apppatch\100apps.sdb -qI am not saying that this will work, but it would be how I would test to see if it works.
kararu Posted December 5, 2008 Posted December 5, 2008 hiMy .exe application doesnt hav any database...It runs fine in winPE 32 bit... But in WinPE 64 bit, it doesnot launch atall. It simply doesnot do anything. I copied all required dlls along with the exe.(by finding through depends).any inputs pls???Thankskararu.
Tripredacus Posted December 11, 2008 Posted December 11, 2008 Does your application run on a true 64bit OS like XP x64, Vista or 2008 or 2003? Make sure your app works in a 64bit OS before you try to make it work in 64bit WinPE.
mats Posted December 12, 2008 Posted December 12, 2008 WinPE 64 does not contain the 32Bit windows subsystem. In other words it will only run 64 bit native apps. Vista/2008 and XP/2003 64 bit editions has a subsytem for runing 32 bit apps. Therefore some apps may run under a full os but fail under PE
Tripredacus Posted December 12, 2008 Posted December 12, 2008 WinPE 64 does not contain the 32Bit windows subsystem. In other words it will only run 64 bit native apps. Vista/2008 and XP/2003 64 bit editions has a subsytem for runing 32 bit apps. Therefore some apps may run under a full os but fail under PEAh this is true. But not all functions of a 32bit app will work properly in 64bit, even if running under the wow64. Is there a way (in those OSes) to force an app to run with just the 64bit system and not use the 32bit system?
mats Posted December 16, 2008 Posted December 16, 2008 (edited) Yes there is. Compile it 64 bit If it's 64 bit code it will be run native. If it's 32 bit it will be handled by WoW64 since it isn't 64 bit wich is that the OS requires so the "simple" way to target the right enviroment is to compile it for that enviroment Edited December 16, 2008 by mats
Eagle710 Posted April 18, 2009 Author Posted April 18, 2009 I haven't had any luck with getting the compat mode to work in Win PE yet. Anybodt made any progress?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now