How to install in a computer without admin rights and no c:\service folder?

39 views
Skip to first unread message

David

unread,
Nov 15, 2013, 12:18:45 PM11/15/13
to licss...@googlegroups.com
Hello,

first of all I wanted to thank you for your huge effort with this add-in. It is really great.

Now, my problem is that I am trying to use in a computer for which I have no admin rights, so I cannot create any directory like  c:\services or copy any files there. I have seen that this directory is the one used by befault by CDK.

I have tried changing the macro definition of CDKDir  to a directory where I have extracted the files of the installer, but I did not succeed to make it work, I just managed to crash excel several times.

Is there any easy way to fix that ?


Best regards,


David.

David

unread,
Nov 18, 2013, 9:03:44 AM11/18/13
to licss...@googlegroups.com
Hi again,

Ok I have playing with it for a while and managed to install it on non default sources.
Basically what I did was open the Add-In   LICCSV3.0.xla

and add a call to  "SetDefaults"  to the routine "lSetup" of the module "ActivateWorkBook   "

Now, it looks like this:

Sub lSetup()
    Dim CDKDir As String, CDKJar As String, srcDir As String, fpLen As String, toWkBook As Workbook
   
    SetDefaults
   
   
    'Gets source and copy to directories, creates copy to directories as necessary and copies files
    CDKDir = Mid(ThisWorkbook.Names("CDKDir"), 3, Len(ThisWorkbook.Names("CDKDir")) - 3)
    srcDir = Mid(ThisWorkbook.Names("srcDir"), 3, Len(ThisWorkbook.Names("srcDir")) - 3)

...




Then, save the Add-In  and reopen excel.
Now, it immediately asks your for the default path and the installation is completed.

Probably the code could search for an existing c:\services  folder, and in case it did not exist, prompt setDefaults.


Best regards,

David.





El divendres 15 de novembre de 2013 18:18:45 UTC+1, David va escriure:

Kevin Lawson

unread,
Nov 18, 2013, 9:22:22 AM11/18/13
to licss...@googlegroups.com

Good to hear you have solved this one, David. I was going to suggest using <Ctrl Shift D> which prompts the user for new defaults (calls SetDefaults and saves the addin). However, I wasn't sure whether you would get an error before getting this far.

Btw, I didn't realise there were machines set up without the ability to create directories on C - this doesn't need admin rights necessarily. What happened when you ran the Nullsoft installer? Did it generate an error?

Best wishes, Kevin

--
 
---
You received this message because you are subscribed to the Google Groups "LICSS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to licss-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Kevin Lawson

unread,
Nov 27, 2013, 5:47:17 AM11/27/13
to licss...@googlegroups.com
Hi David
 
I have been having a look at this problem and have created a new version (3.1) which (in addition to some new modelling and display features) allows the user to choose an install directory and uses this for the AddIn, all other necessary support files and all temporary files. This is now available on the project site (LICSS Version 3.1) and should get around your problems. Btw, the installer should install the new AddIn and, in the list of Excel AddIns, uncheck the old, v3.0, one - I would welcome feedback on whether this works for you.
 
Best wishes
 
Kevin
Reply all
Reply to author
Forward
0 new messages