Author Topic: FEATURE REQUEST: Including Files within Add-ons  (Read 5349 times)

0 Members and 1 Guest are viewing this topic.

Offline acclude

  • Newbie
  • *
  • Join Date: Mar 2013
  • Posts: 15
  • Location: Maryland
  • Karma: 1
  • Destructionator
    • View Profile
FEATURE REQUEST: Including Files within Add-ons
« on: March 17, 2013, 07:47:59 AM »
I have a request that I need in order to make a few Tweaks that I want. I need the ability to include ZIP/MSI/EXE files within the add-on.

I need it for one tweak that will allow users to create a RAM Drive if they have enough RAM (need to install IMDisk). Another one that allows users to change the location of the TEMP directories to another partition/drive (need to install Microsoft Resource Kit if SETX command not natively on their system). I have more too but that gives you an idea of why I'm asking for this feature.

I realize that there is a HUGE security risk allowing random people to include/execute MSI/EXE files from within their own add-ons so I understand if this feature never gets added.

I guess for now, the best choice is going to be running a batch to check for conditions and spit out a message to users what they need to download/install and where they need to get it from and then a "Press any key to continue" message once they've done that.
I'm new to Tweaking.com but very experienced with computers and networks since the early 90's.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: FEATURE REQUEST: Including Files within Add-ons
« Reply #1 on: March 17, 2013, 02:06:42 PM »
Should be able to now :-)

The program currently does reg files, bat files and vbs scripts.

With the scripts and bat files you can call any exe you like. You just have to know where it is on the system in order to call it.

And you can do that thanks to the keywords I put in the program :-)
http://www.tweaking.com/articles/pages/tweaking_com_advanced_system_tweaker_online_help,2.html

So any part in the tweak that has the keyword as example %%%APP.PATH%%% the program will replace that keyword with the correct info.

So to do a exe with a tweak that is with the program from a bat file

in the tweak you would have

start /wait "%%%APP.PATH%%%\add-ons\my.exe"

I haven't checked in a while but I don't think I put any kind of blocks on running exe's. I wanted true admins and system tweakers to have full control and do as much as they can.

The only time I would be careful about exes in tweaks is if down the road a tweak gets popular and I add it tot he setup of the program with the other default tweaks :-)

Shane

PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline acclude

  • Newbie
  • *
  • Join Date: Mar 2013
  • Posts: 15
  • Location: Maryland
  • Karma: 1
  • Destructionator
    • View Profile
Re: FEATURE REQUEST: Including Files within Add-ons
« Reply #2 on: March 17, 2013, 11:27:19 PM »
Alright, I see where you're going with that.

I originally had a different thought process of actually including the required files pre-packaged in with the add-on, but there are other creative ways to make that happen as you pointed out. I'll adjust my thought process on some of the tweaks I want to do ;)
I'm new to Tweaking.com but very experienced with computers and networks since the early 90's.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: FEATURE REQUEST: Including Files within Add-ons
« Reply #3 on: March 18, 2013, 03:54:33 PM »
Just putting the tweaking into a zip file along with the exes and then tell the user to simply copy and past the tweaks into the add ons folder should do the trick :wink:

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline umpio

  • Jr. Member
  • **
  • Join Date: Feb 2012
  • Posts: 58
  • Karma: 9
    • View Profile
Re: FEATURE REQUEST: Including Files within Add-ons
« Reply #4 on: April 14, 2013, 07:58:01 AM »
ah, this solves my problem too! Forgot the keywords.

I need to include "blank.ico" file in my tweak to remove the shortcut arrows. What would be the safest place to copy this icon file to user's computer?

If the icon is left and used from the add-on directory and if user removes the advanced system tweaker, the tweak brakes and result is that shortcuts will then have a big white box on them, because the icon file does not exist anymore.

edit: never mind, I can use browse box to let user define the location!  :)
« Last Edit: April 14, 2013, 08:00:27 AM by umpio »

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 136
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: FEATURE REQUEST: Including Files within Add-ons
« Reply #5 on: April 15, 2013, 11:47:01 AM »
Glad you got it :-)

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

 

anything