ImpulseAI

P3D v3 to v4 Install Fix

Recommended Posts

Hello all,

Came accross this content and it seems to work on my system for v3 installers to be used and installed into v4 versions, any thoughts?

Copied into a text editor and saved with .bat ending, placed into your P3D root install folder....

Spoiler

@set @x=0; /*
@echo off
if "%1"=="" cscript.exe //nologo //e:jscript "%~f0"& Exit
chdir /d "%~dp0"
 
:m0
Echo.
Echo     Choose a command:
Echo.
Echo   1 - Install Fix P3Dv4 P3Dv3
Echo   2 - Delete Fix
Echo   0 - exit
echo.
 
Set /p choice="Your choice:"
if not defined choice goto m0
if "%choice%"=="1" goto m1
if "%choice%"=="2" goto m2
if "%choice%"=="0" goto end
Echo.
Echo   Wrong selection, try again...
Echo.
Echo.
goto m0
 
:m1
 
reg copy "hkcu\SOFTWARE\Lockheed Martin\Prepar3D v4" "hkcu\SOFTWARE\Lockheed Martin\Prepar3D v3" /s /f
reg copy "hklm\SOFTWARE\Lockheed Martin\Prepar3D v4" "hklm\SOFTWARE\Lockheed Martin\Prepar3D v3" /s /f
reg copy "hklm\SOFTWARE\Lockheed Martin\Prepar3D v4" "hklm\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3" /s /f
reg copy "hklm\SOFTWARE\Lockheed Martin\Prepar3D v4 Content" "hklm\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3 Content" /s /f
reg copy "hklm\SOFTWARE\Lockheed Martin\Prepar3D v4 Scenery" "hklm\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3 Scenery" /s /f
 
mklink /j "%USERPROFILE%\Documents\Prepar3D v3 Files" "%USERPROFILE%\Documents\Prepar3D v4 Files" >nul
mklink /j "%USERPROFILE%\Documents\Prepar3D v3 Add-ons" "%USERPROFILE%\Documents\Prepar3D v4 Add-ons" >nul
mklink /j "%APPDATA%\Lockheed Martin\Prepar3D v3" "%APPDATA%\Lockheed Martin\Prepar3D v4" >nul
mklink /j "%LOCALAPPDATA%\Lockheed Martin\Prepar3D v3" "%LOCALAPPDATA%\Lockheed Martin\Prepar3D v4" >nul
mklink /j "%PROGRAMDATA%\Lockheed Martin\Prepar3D v3" "%PROGRAMDATA%\Lockheed Martin\Prepar3D v4" >nul
 
pause
 
goto m3
 
:m2
 
REG DELETE "hklm\SOFTWARE\Lockheed Martin\Prepar3D v3" /f
REG delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin" /f
REG DELETE "hkcu\SOFTWARE\Lockheed Martin\Prepar3D v3" /v Installed /f
REG DELETE "hkcu\SOFTWARE\Lockheed Martin\Prepar3D v3" /v AppPath /f
 
rmdir /s/q "%USERPROFILE%\Documents\Prepar3D v3 Files"
rmdir /s/q "%USERPROFILE%\Documents\Prepar3D v3 Add-ons"
rmdir /s/q "%LOCALAPPDATA%\Lockheed Martin\Prepar3D v3"
rmdir /s/q "%APPDATA%\Lockheed Martin\Prepar3D v3"
rmdir /s/q "%PROGRAMDATA%\Lockheed Martin\Prepar3D v3"
 
pause
 
goto m3
 
:m3
 
exit
 
:end
 
exit
 
*/new ActiveXObject('Shell.Application').ShellExecute (WScript.ScriptFullName,'Admin','','runas',1);

 

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now