To my surprise I did not find the solution how to set up an icon for the start menu application group folder laying ahead. I am looking for the automatic solution in InnoSetup script.
Thank you in advance.
Create the desktop.ini file with the content like this if you want to use the *.ico as a resource (where c:\somepath\icon.ico is path to your icon):
[.ShellClassInfo]
IconResource=c:\somepath\icon.ico,0
Or create the desktop.ini file with the content like this if you want to use the icon from the executable as a resource (where c:\somepath\program.exe is path to your executable):
[.ShellClassInfo]
IconResource=c:\somepath\program.exe,0
Save this desktop.ini file into the directory where you want to apply the icon. One very important note, you have to set to this newly created file attributes Hidden and System, otherwise it won't work!
So please check very carefully if the InnoSetup won't clear these attributes if you'll have the file included in your setup package while installing.
Related
For example, install file 1.txt into c:\my
I have created property named CM in property table, and set value to c:\my, what should I do next?
Thanks
Go to Files and Folders section under Application data in Installation Designer. Click on the Destination folder and create predefined or your own custom folder here. Once done, do the right click on right window and add the desired file.
I want to install/extract all files into the folder I chose from the Setup Wizard. However I don't get to it, because there is always a sub directory created.
For example, if I choose: C:\MyFolder, the installer automatically adds New Folder to it.
How do I install without any auto made sub directory?
My code:
[Setup]
DefaultDirName={sd}\
DisableDirPage=no
And here an example:
I chose Directory: C:\Users\Administrator\Desktop\Neuer Ordner\123
However it selects the directory:
C:\Users\Administrator\Desktop\Neuer Ordner\123\New Folder
I don't want to use the New folder but simply use the chosen 123 folder.
By default, Inno Setup tries to preserve the last component of the path, if you choose another target path.
So if the default path (DefaultDirName) is like C:\Program Files\My Program and you choose D:\Programs, it will automatically append the My Program to become D:\Programs\My Program.
In your case, the Inno Setup is confused by the default path lacking any subfolder. And it (not really correctly) appends the New folder instead. Are you sure you really want to install to C:\ root?
Anyway, if that's intentional, set the AppendDefaultDirName to no.
See the documentation on the AppendDefaultDirName directive:
By default, when a folder in the dialog displayed by the Browse... button on the Select Destination Location wizard page is clicked, Setup automatically appends the last component of DefaultDirName onto the new path. For example, if DefaultDirName is {pf}\My Program and "Z:\" is clicked, the new path will become "Z:\My Program".
Setting this directive to no disables the aforementioned behavior. In addition, it causes a Make New Folder button to appear on the dialog.
I cannot grant write permission to the file Preferences.sublime-settings in Sublime Text on Elementary OS Luna 3. If someone went through it, can you help me?
There is no way to go to the directory where it is because it simply is not in the way I get by clicking with the right button of mouse > Copy File Path.
I get this path:
/home/llarruda/.config/sublime-text-3/Packages/Default/Preferences.sublime-settings
In the directory Packages i just have the directories User and the link of current directory (.) and level return link (..).
I sailed across the directory tree for the Sublime Text 3, via bash, listing including hidden directories, nothing positive. I tried to grant permissions recursively to the for the whole Sublime Text 3 directory and even the innermost level that I can access and should contain the file Preferences.sublime-settings, I haven't success.
I did the install from the .deb package obtained on the official website.
PS: I want grant write permission, but I force give to the whole directory full permition - sudo chmod -R 777 sublime-text-3, that inside on .config directory
In ST3, plugins/packages are run directly from the .sublime-package file. For most things, you don't actually need the contents of those files. For instance, you can create a Preferences.sublime-settings in the user folder, and it will be merged properly. That being said, ST3 does allow you to override files. To make things easier, you can use the plugin PackageResourceViewer. I wrote it to assist with viewing default files. Again, you don't need to do this for your particular case though. In the menu, go to Preferences -> Settings - User. This will create a preferences file in the user directory. When merged, the values in the User directory will be used rather than those in Default.
I'm migrating from Sublime Text 2 to 3. In Sublime Text 2, I changed a lot of the default settings of the editor -- such as the tab bar height, sidebar color, etc. -- by modifying the Default.sublime-theme file in sublime-text-2/Packages/Theme - Default. I was also able to modify the colors of the default color schemes in a similar fashion. I've been trying to figure out how to do this for Sublime Text 3, but can't seem to find these files. ~/.config/sublime-text-3 only seems to contain overrides for user settings, not the default settings.
This link on the Sublime Text forums seems to give the location for Windows and Mac, but not for Ubuntu. I've searched a bit to no avail. Does anyone have suggestions?
Thank you!
To amplify on #skuroda's answer - ST3 contains all of its data that, in ST2, was stored in Packages/PackageName, in PackageName.sublime-package files that are basically just zip files, or "Resources" as they're now known. Using PackageResourceViewer, you can easily edit the individual files contained within the resource, then save it back again. When saved, the proper directory structure under Packages/PackageName will be created, allowing you to edit the file directly next time. The way file precedence works in Sublime, any file that exists in ~/.config/sublime-text-3/Packages/PackageName/ will override any file of the same name stored in PackageName.sublime-package.
However, since you don't want these files to be accidentally overwritten, I would suggest creating ~/config/sublime-text-3/Packages/User/Themes/ and User/Color Schemes directories and storing your customized files there instead. The User/ directory is protected from overwrites during upgrades, etc., and unless you're planning on creating a customized theme or color scheme for redistribution through Package Control, it's best practice to keep your files in there.
EDIT
I just realized you hadn't gotten an answer to your original question - where are the files stored? If you installed the .deb file from sublimetext.com, all the .sublime-package files are in /opt/sublime_text/Packages.
If you want the easiest way to save your customized settings first copy all the default settings and paste into a new file named Preferences.sublime-settings.
Then make your changes and save the file to:
/home/**username**/.config/sublime-text-3/Packages/User
In order to see the .config folder you will have to enable show hidden files.
The instructions are written at the top of the default settings list in case you are wondering where got this from.
In the ST console, try entering sublime.executable_path(). This should get you close to where you need to be. Also, you should copy the content of the file out and move them (under a new name to the packages folder). You probably don't want your modifications to be reverted on subsequent update. An alternative method is to try overriding the files you need to. I haven't done that for theme files, so I'm unsure if everything will work as it should. If you take the override route, I'd recommend using PackageResourceViewer. I wrote it to help with browsing/overriding package files in ST3.
You can use
dpkg -L <package name>
For example
dpkg -L subli<tab>
Just open up sublime text, hit ctrl+` to open sublime text console, then run these command accordingly
sublime.packages_path() to see user installed packages directory
sublime.installed_packages_path() to see zipped packages (with .sublime-package file type) directory
Mostly likely, you'll find the Default package inside zipped packages directory.
You can use PackageResourceViewer to see zipped packages's contents as #MattDMo suggested, but more over, you can actually extract zipped packages into user installed package directory directly using PackageResourceViewer's extract command.
Just like Search result can feed the listbox (which opens new temporary tab),
is there a way to:
simply select files from one directory and feed the listbox?
select files from multiple directories and feed the same listbox?
Just to rename listbox's temporary tab and you could have favorite list of items over which you could perform more actions. This would increase productivity tremendously!
Regarding #1:
After you select the files activate:
Menu > Show > Only Selected Files
Regarding #2:
It's probably not what you were after, but you can use DiskDir / DiskDir Extended to add files (using a packer functionality, so you create an 'archive' file with extension .lst which contains a hierarchical list of the added files. You can then change source folder and then add more files. Later you just click on the .lst file and it looks no different then your normal file / folder list. Unfortunatelly you cannot rename the files, but you can launch them, with an extra confirmation.
UPDATE
Similar functionalitybut with 'source' renaming functionality limited to one file only (?): Virtual Panel, (File System Plugin, accessible through the Network Neighborhood 'drive'). It can launch files without a confirmation window. Rename 'source/target' file when you use it's own subbar (located here: %%COMMANDER_PATH%%\Plugins\WFX\VirtualPanel\EN\VirtualPanel.bar, make sure that you also have installed the AskParam addon and have paths in the VirtualPanel.bar right (both to AskParam.exe and VPBatch.exe). 'Regular' rename will change the file name only in the virtual panel.
URL: Virtual Panel Plugin