topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 2:14 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: How to make ScreenshotCaptor PORTABLE?  (Read 4070 times)

EduardTsoy

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
How to make ScreenshotCaptor PORTABLE?
« on: December 18, 2013, 05:37 PM »
How to make ScreenshotCaptor PORTABLE and make it use .INI configuration files in its EXE folder?

Instead the application creates INI-files in my user's local folder, which makes it NOT portable...

P.S. I did not install it into 'Program Files'.
Instead I downloaded ScreenshotCaptor by 'get the portable.zip' link (https://www.donationcoder.com/Software/Mouser/screenshotcaptor/downloads/ScreenshotCaptorPortable.zip)
and then unpacked it.
« Last Edit: December 18, 2013, 05:44 PM by EduardTsoy »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: How to make ScreenshotCaptor PORTABLE?
« Reply #1 on: December 18, 2013, 05:48 PM »
You shouldn't have to do a single thing if you downloaded the portable zip file, so something is going wrong.

Can anyone confirm they are experiencing the same behavior?

The portable version should be creating it's ini file in the folder you unpack it to -- just like you are saying you want it to.
You should not have to do anything other than unpack the zip file and run it, and all files should be saved in that directory.

The only thing that should change that would be if it can't save to that directory  for some reason (like it doesn't have permission to) or if you do something that would change/replace/relete the ConfigDir_Default.ini file or put a different ConfigDir.ini file in that directory.

Can you check that you have a Configdir_Default.ini file in that directory and no ConfigDir.ini file in that directory.

And give me some more information?

Did you unpack it into your my documents directory somewhere, or onto a usb drive? If you tried to manually install it into the Program Files or other similar directory, and you are using Windows Vista or later, it may be blocking the ability to save there.

What version of windows are you using?
« Last Edit: December 18, 2013, 05:54 PM by mouser »

EduardTsoy

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: How to make ScreenshotCaptor PORTABLE?
« Reply #2 on: December 18, 2013, 06:32 PM »
Windows 7 x64 Home Basic; Windows 8.1
I log into Windows with 'Administator' user.
Some time ago I logged into Windows with another name of user with admin rights rather than Administrator itself.
I unpacked ScreenshotCaptor portable.zip to my local hard disk, folder D:\My_Portables\ScreenshotCaptor

There is ConfigDir_Default.ini file in the folder.
And also there was ConfigDir.ini there, but all its lines were prefixed with comment symbols.
I'm not sure, maybe it was my bad idea to create that file from ConfigDir_Default.ini file, maybe not.

So, I deleted ConfigDir.ini file and now everthing works 'portably' fine! :)

Thank you.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: How to make ScreenshotCaptor PORTABLE?
« Reply #3 on: December 18, 2013, 07:37 PM »
Glad to hear it worked out well, and thanks for taking the time to let us know the fix  :Thmbsup:

I'll explain basically what my programs do with regard to those ConfigDir files, for others that might stumble across this same problem.

When Screenshot Captor (or other programs i've written) start up, the first thing they look for is a ConfigDir.ini file.  This file should not be created automatically during installation, so if it exists, its because user made it, so it takes precedence.  If this file doesn't exist, the program will then check for a ConfigDir_Default.ini.  This is useful because in my portable zips, i include one of these that says to save configuration settings in the current directory (that is, to run portably).

As an aside, the reason that the portable versions come with a ConfigDir_Default.ini and not a Configdir.ini is so that users can make their own ConfigDir.ini that takes precedence, which won't be overwritten if they unpack a new release on top of the old.

So the ConfigDir_Default.ini that comes in the portable zips explicitly says to save settings in the current directory.  Without that, the program will choose to use the users local documents directory.

So when you made your own ConfigDir.ini and COMMENTED OUT the lines that said to run portably, that combination was telling the program to save in users local documents directory, since that's the default behavior of the program if nothing tells it any differently.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: How to make ScreenshotCaptor PORTABLE?
« Reply #4 on: December 18, 2013, 07:38 PM »
In short, the portable zip files are ready to use portably, you don't need to do anything else other than unzip them.  The installer is set up to run non-portably and use user document directory.

If you want to modify either of these behaviors you can, just create your own custom ConfigDir.ini file and tell the program exactly where you want the settings saved.

EduardTsoy

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 3
    • View Profile
    • Donate to Member
Re: How to make ScreenshotCaptor PORTABLE?
« Reply #5 on: December 19, 2013, 04:43 AM »
Usually I think what I'm doing, so my guess is that the story went like this:
- I installed ScreenshotCaptor normally to Program Files, used it for a while.
- Then I realized a portable would be better, found INI files, backed them up and uninstalled the application.
- Installed the portable version and copied previous INI files to the portable directory (having no clue how they work and that this would harm its portability).
Hence the mess. :)