Any way to install two copies of SU (same version)?  Topic is solved

Any way to install two copies of SU (same version)?

Postby derei » Sun Dec 25, 2016 11:15 pm

I am wondering if is any way to (force?) install two copies of same sketchup version on a machine...
the reason would be to keep a light version for testing stuff (ruby, etc) and the other one to be the "usual" sketchup that has all the plugins and things that I am using for modelling.

I know that I can run different versions of SU on the same machine, but the reason why I want a second installation for the same SU would be speed - to avoid loading all the plugins that the "usual" version would load.

I would welcome other options too, like a way of starting SU without the plugins (to have a alternate location, from where I only load the tested plugin)...

Thanks.
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

Re: Any way to have installed two copies of SU (same version  Topic is solved

Postby Garry K » Sun Dec 25, 2016 11:34 pm

You can do it with 2 plugin folders and 2 desktop shortcuts to 2 batch files.

Call them something like "SU Light.bat" and "SU Full.bat"
Have the batch file rename the plugin folder's accordingly and then start sketchup

Or you can have to loader.rb files each containing 2 lines
Have the batch file copy the correct loader.rb file into the plugins folder and start sketchup

require 'sketchup.rb'
require_all('c:/users/public/documents/sketchup/plugins_light')

require 'sketchup.rb'
require_all('c:/users/public/documents/sketchup/plugins_full')
2

Garry K 
Premium Member
Premium Member
 

Re: Any way to have installed two copies of SU (same version

Postby derei » Mon Dec 26, 2016 4:24 pm

Garry K wrote:You can do it with 2 plugin folders and 2 desktop shortcuts to 2 batch files.


Wow, this is a very tricky solution! I love it! Thank you very much Garry.
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

Any way to have installed two copies of SU (same version)?

Postby Jim » Tue Dec 27, 2016 3:13 pm

I don't care for the idea of renaming the folder although it's probably fine.

First just set an environmental variable from the batch file, and use it in a Ruby script to select a plugins sub-folder to load from.

Second, SketchUp accepts a command line argument which is a Ruby script to run. It can be located anywhere. Search this forum for RubyStartup.

I have a GutHub repo with and example of portable plugins loading. https://github.com/jimfoltz/SketchUp-Po ... ins-Loader
0
Hi

Jim 
Global Moderator
 

Re: Any way to have installed two copies of SU (same version

Postby Box » Tue Dec 27, 2016 3:18 pm

You could use 'sets' to easily turn off and on multiple plugins.
0
User avatar
Box 
 

Re: Any way to have installed two copies of SU (same version

Postby Jim » Tue Dec 27, 2016 6:23 pm

There are also 2 settings available through the Sketchup module that may be of interest.

They are plugins_disabled and debug_mode.

http://ruby.sketchup.com/Sketchup.html
0
Hi

Jim 
Global Moderator
 

Re: Any way to have installed two copies of SU (same version

Postby derei » Tue Dec 27, 2016 10:43 pm

Thank you very much to all of you! Great options, great ideas!

I tried some of them and until now the results are promising... but I still have a problem that is nasty actually:
I tried on SU2017 and when pointed to a directory without plugins it loaded only with the toolbars that it had from the built-in tools. But - and now starts to be messy - when I returned it to the folder where all my plugins are, I got a toolbar mess...

I believe a way to save the toolbar positions and restore them would be ideal, not only for my current situation, but also for Backup/Restore. We have the bundles in Extension Store, which saves a lot of time, but still arranging toolbars is left to the user (yes, this depends on resolution, available plugins, etc), but considering the same display resolution and the full set in the bundle, would speed-up the restore process.
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

Re: Any way to have installed two copies of SU (same version

Postby Jim » Wed Dec 28, 2016 3:06 am

> I believe a way to save the toolbar positions and restore them would be ideal, not only for my current situation, but also for Backup/Restore.

It may be possible to backup and restore the registry for various configurations in your batch file.


Export:
Code: Select all
reg export "HKCU\Software\Sketchup\SketchUp 2017" Sketchup_2017.reg


Import:
Code: Select all
reg import Sketchup_2017.reg
0
Hi

Jim 
Global Moderator
 

Re: Any way to have installed two copies of SU (same version

Postby derei » Wed Dec 28, 2016 3:59 am

Thank you very much Jim!
In the meantime I solved it by myself starting from this old post: viewtopic.php?f=15&t=37990&hilit=toolbar+registry&start=30
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

Re: Any way to have installed two copies of SU (same version

Postby Garry K » Wed Dec 28, 2016 6:27 am

If you aren't going to use ruby methods etc that were introduced in SU2017 then you could run SU 2016 and SU 2017 simultaneously - one with all your plugins and one with a bare set. This might be a solution for testing your code.

Just a thought.
0

Garry K 
Premium Member
Premium Member
 

Re: Any way to have installed two copies of SU (same version

Postby Dan Rathbun » Thu Dec 29, 2016 4:30 pm

derei wrote:I am wondering if is any way to (force?) install two copies of same sketchup version on a machine...
the reason would be to keep a light version for testing stuff (ruby, etc) and the other one to be the "usual" sketchup that has all the plugins and things that I am using for modelling.

The easiest way that I use is to create a new "Test" user account, and log onto that account for testing. This "Test" user then does not make changes to my normal user account. (SketchUp keeps a separate set of registry values, for each user, in each different user's registry hive.)
1
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: Any way to have installed two copies of SU (same version

    Postby Garry K » Thu Dec 29, 2016 6:04 pm

    I agree with Dan.

    In my testing scenario I simply install my plugins in an area that All users can see. This way the several hundred settings can be seen by all versions of sketchup and all users.

    My plugins all work with every version of sketchup after SU 6 (haven't tested SU 6)
    0

    Garry K 
    Premium Member
    Premium Member
     

    Re: Any way to have installed two copies of SU (same version

    Postby derei » Thu Dec 29, 2016 8:46 pm

    Dan Rathbun wrote:The easiest way that I use is to create a new "Test" user account, and log onto that account for testing. This "Test" user then does not make changes to my normal user account. (SketchUp keeps a separate set of registry values, for each user, in each different user's registry hive.)


    So, you say that SketchUp keeps totally separate settings for each system account? Nothing gets mixed-up (plugins, toolbars, settings) ?
    0
    DESIGNER AND ARTIST DEREI.UK
    User avatar
    derei 
     

    Re: Any way to install two copies of SU (same version)?

    Postby Dan Rathbun » Fri Dec 30, 2016 4:27 pm

    This is correct. SketchUp's settings are written to the currently loaded user (HKCU/Software) hive of the registry. So user "Jane"'s settings cannot affect user "Dick"'s settings.

    Try it.
    0
      I'm not here much anymore. But a PM will fire email notifications.
      User avatar
      Dan Rathbun 
      PluginStore Author
      PluginStore Author
       

      Re: Any way to install two copies of SU (same version)?

      Postby derei » Fri Dec 30, 2016 6:38 pm

      Dan Rathbun wrote:This is correct. SketchUp's settings are written to the currently loaded user (HKCU/Software) hive of the registry. So user "Jane"'s settings cannot affect user "Dick"'s settings.

      Try it.


      I will try. Thank you.
      But just beware, even if Jane's settings can't affect Dick's, Dick can affect Jane's settings... because he's a dick... :mrgreen:
      0
      DESIGNER AND ARTIST DEREI.UK
      User avatar
      derei 
       

      Re: Any way to install two copies of SU (same version)?

      Postby Dan Rathbun » Sat Dec 31, 2016 2:44 pm

      Hmmm,... you must have seen the movie (or the remake.)
      0
        I'm not here much anymore. But a PM will fire email notifications.
        User avatar
        Dan Rathbun 
        PluginStore Author
        PluginStore Author
         

        Re: Any way to install two copies of SU (same version)?

        Postby tomot » Tue Mar 07, 2017 2:31 am

        If you are really serious about running another copy or another version of SU, without it interfering with the registry then you should consider virtualization a version of your SU software.

        https://my.vmware.com/web/vmware/downloads

        Example: I'm currently using SU 2015 as my main workhorse for daily work. Having found out that SU 2016 wont run many of my Ruby scripts. I created a virtual copy of SU 2016, also known as a Portable version, using vmware.

        Warning: this process should not be attempted without a good understanding of Windows and what virtualization is.

        Here is a short description of how I make a portable copy.

        1. I always have a fresh bootable install of Windoz only, on a new UBS3 HDD
        2. I install vmware and SketchUp on 1
        3, With vmware running I make a new Bootable copy of SketchUp

        Now I can run a portable version of SketchUp from my USB3 HDD or move that Portable to any other HDD
        If you are competent in using vmware you can make versions that allow you to add addons scripts to your portable version, this is very important.

        good luck!
        0

        tomot 
        PluginStore Author
        PluginStore Author
         

        SketchUcation One-Liner Adverts

        by Ad Machine » 5 minutes ago



        Ad Machine 
        Robot
         



         

        Return to Developers' Forum

        cron

        Who is online

        Users browsing this forum: zotto and 6 guests

        Visit our sponsors: