How to hide Startup icon in installshield - installation

I create a shortcut on startup folder through installshield. i want to load that exe on startup , but i don't want to show that shortcut in program file--> startup folder, How can i do that, thanks

Don't create a shortcut, use the registry Run keys to start your application instead. e.g.
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

Related

Control What Advanced Installer Puts In Program Files

I create an Advanced Installer Template that has a Custom Exe attached to the process.
Advanced installer creates an msi with the custom exe embedded into it.
When I run the msi and look in Add/Remove Programs there are 2 entries the installer
itself and the custom exe.
I want only the installer itself listed there not the custom exe.
How can I accomplish this?
I map a key to delete and it only gives an option to delete values in the key? I want to delete the entire key
You can try to remove the Control Panel registry key for your custom exe product. Just search in regedit for a path like this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Product
Then in "Registry" page of your setup project (in Advanced Installer tool), create the path of the above reg key, right click on it -> Properties -> Operations -> check Remove this key ... option with Remove on - component install.
This way when your current setup package installs it will delete the registries associated with your custom EXE product.

insert an item in the menu context of any text editor (on windows)

I want to simplify a process by right-clicking in a text editor. this item launchs a *.bat file.
I have searched in the registry editor. I know how create the keys, but I know where create them to add this action after the famous "cut, copy, paste, ..."
by advance thank you.
CudaText editor (free) has this feature via Configure Menu plugin. You run the plugin, create the menu JSON file, then edit this file, to add any command.
How to add command for Bat file? Via plugin External Tools. Add there command to call bat file.

How to load scripts from a custom folder in InDesign? like from a central repository

I would need a folder to be shared on the server and InDesign CS6 would need to load the scripts from that particular location.
Is this possible?
If you just want to include other scripts in your script you can do this:
$.evalFile(new File(mainscriptloc + "/c/some/folder/central.jsx"));
It will load central.jsx into the executing script just like an "include" file.
On a Mac? I found this solution useful:
http://tewha.net/2012/07/make-a-symbolic-link-from-finder/
The best way I found is to create a folder in any place you want your scripts to be (like a server) which is shared with all the users. Then to setup and run the scripts will be more tricky:
Open ExtendScript Toolkit
Open "Scripts" tab
Click on the top-right button and "Add Favorite"
Choose your path to the script and click ok
Now you can click on the drop down on the left and select "Favorites"
Click on the right drop down and click on your folder name
Double click on your script and run it
Now you are running scripts directly from the custom folder.
The startup script cannot be run from there... so it only works with scripts.
We create links in the users individual scripts folders that link back to the actual script in the central repository on Windows. The downside is of course that users will reasonable often accidentally copy the actual script, rather than a link to the script - and then they miss out on future updates to the script.
Below is an example of a typical users 'scripts panel' folder. Each of the shown shortcuts point at a file in our central repository.
When the user opens InDesign these shortcuts appear in their scripts panel the same way a regular script file would.
On a Mac, I suggest using symlinks (a special kind of OSX shortcut - go here for instructions and an Automator workflow download that will create one whenever you need it).
To create a shortcut, simply select the desired folder (recommended) or file located elsewhere on your computer/server and run the workflow (I suggest making a keyboard shortcut to the workflow as described in the instructions). Drag the shortcut created into your inDesign scripts folder and it will appear and operate exactly as the actual script or folder would in your Scripts Panel. Simply click on the link and inDesign will do the rest - you'll never know what you clicked is not the actual folder/file or that it's located elsewhere.
Note: if you create a shortcut to a script file rather than a folder, be sure to remove the extra text the workflow adds to the name (ie. when applied to "MyScript.jsx", the workflow will create a shortcut named "MyScript.jsx symlink". Remove the " symlink" part so inDesign will recognize the shortcut as a script file. Otherwise it will not run).
I've tested this with inDesign CC on my Mac and it works flawlessly.

Associate folder with my application?

How to associate a specific folder(not files with extension) with my application in windows, so that when i double click on that folder it open my application?
I assume that there's no application starting when you doubleclick on a folder, because you cannot "start" it with "open with" either. But as a workaround you could create a shortcut to your application under [systemdrive]\user\[username]\AppData\Roaming\Microsoft\Windows\SendTo and start your application over the rightclick->"send to" menu.

How do I Create a link to an executable Installed by Visual Studio Setup Project

I am working on a visual studio setup project. I want the setup project to install the executable for a windows forms project, and then put a link to that executable in the Programs Menu on the target machine. In the Setup Project I clicked 'Add'-> Project Output... and selected the Primary Output from my WindowsForms App. So that should install the program right? Ok, so next I went to the File System on the Target Machine, right clicked on the Primary output from WindowsForms App and said Create Shortcut. I then moved that shortcut into the User's Programs Menu folder.
I tried running the installer and it works ok but for some reason whenever I click shortcut that is in the Programs Menu It actually installs the program before running it every time. Why does it do this? Did I add a shortcut to the wrong thing? If I navigate to the directory application directory and click the .exe file it just opens the program without doing any install. Does anyone know what is going on?
I read somewhere that I could actually make a shortcut in windows explorer that targets my output .exe and then add that file to the installer project but I can't see how that would work on every machine it gets installed on.
I think this is how I did it... been a while tho.
Application Folder
Primary Output From MyProjectName (Active)
Right-Click => Create Shortcut
Then
Users Program Menu
Right Click => Add Folder
Go back to "Application Folder"
Move the shortcut over to the program menu
Rename it to whatever you need. The "Type" should say "shortcut"
Is that kinda what it looks like for you right now? Something in
* User's Program Files
* My App Folder
* Start My Application (shortcut)
And need I say, MS's install projects are a nightmare :) Just open the .VDproj and look. I never thought i'd say I like the csproj xml format, but in comparison...
The problem was not actually in how I was creating my shortcut but rather what the shortcut was pointing too. The executable that the shortcut was targeting was not in the main installation folder and for some reason it didn't like that. Restructuring the install directories a bit fixed it.

Resources