Evaluate newer version of UltraEdit

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Evaluate newer version of UltraEdit

Postby btking » Fri Jan 14, 2005 6:57 am

I have v9.xx installed and wanted to evaluate the latest release for the SFTP options. Can I install to a different directory without killing my current registered copy?
User avatar
btking
Newbie
 
Posts: 2
Joined: Fri Jan 14, 2005 12:00 am

Re: Evaluate newer version of UltraEdit

Postby Mofi » Fri Jan 14, 2005 9:32 am

Simply rename your existing UltraEdit directory and back up your uedit32.ini and uedit32.kbd before installation of the new version. I think, it is also possible to change the directory during installation, but it will always update the ini-file in the windows directory.

If you move all uedit32.* files from windows to UltraEdit directory and copy the whole UltraEdit directory with a new name in "Program Files" before installation of the new version, you can install the new version again to directory "UltraEdit" and later switch between the two versions easily by renaming the directories, when no UltraEdit instance is running.

Example:

Current installation directory: C:\Program Files\UltraEdit

Move C:\Windows\uedit32.* to C:\Program Files\UltraEdit

Before installation copied to: C:\Program Files\UltraEdit9

Install new version and let UE update existing V9.xx files in UltraEdit directory.

After installation:
New version in: C:\Program Files\UltraEdit
Old version in: C:\Program Files\UltraEdit9

To switch back to V9.xx:
rename UltraEdit to UltraEdit10
rename UltraEdit9 to UltraEdit

I personally use this method, because it has the advantage that all file associations will be the same, independent which version of UE I am using at the moment.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Evaluate newer version of UltraEdit

Postby palou » Fri Jan 14, 2005 10:44 am

Hi,

This is a bit out of subject, but why to put the ini file in the Windows directory instead of simply putting it in the application's one? It will be easer to live with multiple versions and everythings will be located in the same place.
User avatar
palou
Basic User
Basic User
 
Posts: 46
Joined: Fri Dec 17, 2004 12:00 am
Location: Geneva / Switzerland

Re: Evaluate newer version of UltraEdit

Postby btking » Fri Jan 14, 2005 12:10 pm

Thanks a million Mofi!!! Your suggestion works perfectly! Now maybe I can convince the boss to upgrade b/c the SFTP works very well for what I need to do...
User avatar
btking
Newbie
 
Posts: 2
Joined: Fri Jan 14, 2005 12:00 am

Re: Evaluate newer version of UltraEdit

Postby Bego » Thu Mar 30, 2006 12:38 pm

Hi dudes, hi Mofi,

I actually test version 12 still having Version 11 installed as Mofi described above.
But fast, I got fed up with that f??? renaming stuff and decided to write a VB script for that.
Here it is, called switchUE.vbs

Just configure it and let it run. It explains itself.
Have fun. Oh, btw: NO GUARANTEE AT ALL !!!!

rds Bego

Code: Select all
'switchUE.vbs
'Switch between 2 (TWO!!!) UltraEdit installations
'PREREQUISITES:
'- Active folder is called like ...\UltraEdit
'- A second folders has to be named like ...\UltraEdit11   (with a SUFFIX as difference)
'- Make sure there are no UEdit* files in your Windows directory !
'
'Use the star (*) to look for configs YOU have to do :-)
'
Option Explicit
   Dim shl
   Dim exename
   Dim folderNewVersion   'check what is currently active + Plausicheck
   DIM folderOldVersion   'check what is currently active + Plausicheck

   Dim folderRunVersion
   Dim folderAktVersion
   Dim folderPasVersion
   Dim args
   Dim fso
   DIM AKTVERSION   'aktive Version
   DIM PASVERSION   'passive Version
   DIM OLDVERSION
   DIM NEWVERSION
   DIM SLASH
   DIM cntFolders
   dim answer

   OLDVERSION = "11"   '*
   NEWVERSION = "12"   '*
   folderRunVersion = "C:\Progra~1\Ultraedit"   '*
   folderNewVersion = folderRunVersion & NEWVERSION
   folderOldVersion = folderRunVersion & OLDVERSION
   exename = "uedit32.exe"
   SLASH = "\"
   cntFolders = 0

   '*** No more modification needed from here on ... ***
   Set fso = CreateObject("Scripting.FileSystemObject")

   cntFolders = abs(fso.FolderExists(folderRunVersion)) + _
             abs(fso.FolderExists(folderNewVersion)) + _
             abs(fso.FolderExists(folderOldVersion))

   'first, test the installation with its current configuration
   if cntFolders <> 2 then
      MeldungRaus ("Error. There are no 2 Ultraedit-Installations found. Found " & cntFolders)
   'else
   '   MeldungRaus ("Looks good. Found " & cntFolders)
   end if

   if fso.FolderExists(folderNewVersion) then
      AKTVERSION = OLDVERSION
      PASVERSION = NEWVERSION
   else
      AKTVERSION = NEWVERSION
      PASVERSION = OLDVERSION
   end if
   folderAktVersion = folderRunVersion & AKTVERSION
   folderPasVersion = folderRunVersion & PASVERSION
   answer = MsgBox("Active UE is version " & AKTVERSION & "." & vbcrlf & _
            "Should version " & PASVERSION & " be activated ?" & vbcrlf & vbcrlf & _
            "YES=activate and start" & vbcrlf & _
            "NO =just activate, no UE start" & vbcrlf & _
            "Cancel = do nothing" & vbcrlf _
            , vbQuestion+vbYesNoCancel, "Switch active UE-Version. CLOSE RUNNING UE's NOW !!!")
   if answer = vbcancel then
      wscript.quit
   end if
   'activate
   'msgbox  folderRunVersion & "-->" & folderAktVersion & vbcrlf & _
   '        folderPasVersion & "-->" & folderRunVersion
   fso.MoveFolder folderRunVersion, folderAktVersion
   fso.MoveFolder folderPasVersion, folderRunVersion
   if answer = vbyes then
      'Start UE
      Set shl = WScript.CreateObject("WScript.Shell")
      shl.Run folderRunVersion & SLASH & exename,1 ,FALSE
   end if

   wscript.quit

'----------------------------------------------------------------------------------

Sub MeldungRaus (strMeld)
   wscript.echo strMeld
   wscript.quit 1
End Sub
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany


Return to UltraEdit General Discussion