Jump to content
Sign in to follow this  
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);

 


Stephan Faessler // designer, painter

P1 // vACC Switzerland Controller

impulseai

970abb2d.png

Share this post


Link to post

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
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...