How to change Display Icon in "Add or Remove Program" using ISwi object in Install shield using vb script.
InstallShield 2012 automation object:
With the ISWiProject Automation Object you are able to change a lot of internals of an InstallShield project. For "Add or remove programs" section you may change CompanyName, CompanyPhone, CompanyURL, but not the ProductIcon.
Let's look what is ProductIcon property. This is the path to your local resource (usually path to an .ico file somewhere under the resources of your project). If so, just copy new icon, you would like to see, into this location (overwrite existing icon) and after use automation to re-built the project. During build it's gonna use icon from this location which you just override. Here you go, you just replaced your icon.
InstallShield 2015 automation object:
If you have ability to use latest automation object, you in luck to set requested properties through your scripting. The new ISWiProject Object (Advanced UI and Suite/Advanced UI) allow you to set ArpIcon and ArpIconIndex as path to .exe, .ico or .dll files and index of the icon to be used. Those would be the properties you are looking for.
Related
I have been trying to add a local .dll file to my project as I need some built in commands it has for my offline simulation connecting to a GPIB. The problem is I am missing the "Browse" tab to search for the .dll file to add.
I have made a setup project using Visual Studio Installer. Now in this setup project I just want to have a custom dialog box which have one textbox and one button(BrowseButton), when I click this button a popup for selecting a folder in the target machine may appear.
In other words I want The "Browse For Folder button" or ""browser button" so that I may select any folder in the target machine. Once I select a folder the path should now come in the textbox. Because in the end I would like to save this path in the registry of the target machine.
I have Orca and I did tried to make this custom dialog using it but I am unable to do it.
There is only one browse dialog in those setups, and that's for the main application folder, so there isn't a way to do this. A custom action won't help because they all run after the files are installed.
I don't know why and where you need to browse to, but in most case there is a simple default location (such as an application data folder or a shared folder) that works fine. This really helps during upgrades when the upgrade install may need to do something with that variable location, and any apps will always know where it is. It's easier for the user too.
I have Visual Studio Express 2012 installed which is linked to my VisualStudio.com account, I created a new project but I didn't tick the
Add to source control
option as I was intending it to be a throwaway project. However, I now want to keep it so I am trying to add it to source control after the fact.
I've tried both adding the project to source control when the project is open and moving the files from the "Excluded Changes" section of the Pending Changes window. In both cases I get the following error:
TF10169: Unsupported pending change attempted on team project folder $/RadioButtonTest. Use the Project Creation Wizard in Team Explorer to create a project or the Team Project deletion tool to delete one.
My default collection is mapped to E:\Chris\projects and the project I'm trying to add is directly in that folder.
What am I missing?
I had exactly the same happen - mucked about a bit and got it working by adding a project of the same name to my VS Online page.
Try this:
Open your web browser to your visualstudio.com homepage
Under "Recent projects & teams"
Hit "New"
Use your "RadioButtonTest" as the project name and go through the
creation flow
Check in from VS
I found a much simpler way to add the Project to Source Control for Visual Studio 12. I selected the project, go to the "FILE" menu, selected "Source Control", where you may see an option to "add this project to source control".
If you don't see that option, though I think you will; you can select "Advance" then "Change Source Control". In that dialog box you will see all the projects bound to the solution. Select the project you want to add to source control, and choose "unbind" then "ok". (it will throw a warning that some files were already in source-control, select "ignore all") Now your project is unbound, right click on the project name, the option to "add this to source control", and voila! Now you're running with petrol!
The reason this is happening is because there isn't a "team project" for the solution but there more than likely is a collection which isn't the same thing.
The above answers helped me figure it out but all I had to do was create a new team project from the instructions on MS's website: https://msdn.microsoft.com/en-us/library/dhedaeb2(v=vs.90).aspx and then I was able to add solution to source control.
I'm not quite sure why you are getting this error but here is another approach you could take.
Create a new project with the same name and check the "Add to Source Control" project.
Commit the initial version and close the project in Visual Studio
Copy the contents of the real project over the newly created project
Re-open in Visual Studio and let it detect the new changes
Commit the new changes to SCC
This is a round about way of getting an existing project into source code control.
I managed to fix this issue by right-clicking the solution and selecting "Add Solution to Source Control".
I encountered this issue when I tried to create a new TFS project folder (rather than a "team project") at the root. After trying everything suggested above, I did the following:
copied my code to another folder
did an "undo" on all pending changes (making sure that the only changes included were the ones for the project at hand)
deleted the filesystem folder
created a "team project" in TFS Team Explorer (this wizard automatically creates a folder at the root and checks in the changeset)
copied my source code back to a folder with the same name as the team project
opened the solution in VS
right-clicked the solution and clicked "add solution to source control"
checked in...success at last!
I got this error when I went to check in a project, I had created the solution in a new team folder that was not in TFS and fixed it by doing the following:
Go to Team Explorer
Click the drop-down arrow to the right of Home
Click Projects and My Teams
Click New Team Project...
Add a team project with the same name as the new project folder.
Just wondering if anyone knows how to set a saved publish profile as the default i.e. profile that's automatically loaded when I select publish. I love the new profile approach but I'm a bit over having to reselect the same profile over and over while I'm developing.
In VS2012 and up, you can set the Default Publish Profile by right-clicking on the .xml profile file and clicking the Set As Default Publish Profile option. It will then be auto-loaded when you click to Publish the project.
So I've just discovered how to do this, right click on the specific .xml file (e.g. Debug.publish.xml) that you wish to publish and it is automatically loaded into the Publish panel.
Double clicking the XML file also works
The latest Visual Studio 2012 Updates also now include right click options for:
1 - Set as default
2 - Publish
Rob, you may want to consider setting up some batch files that call SQLPackage to use your desired Publish profile. I blogged about it here: http://schottsql.blogspot.com/2012/11/ssdt-publishing-your-project.html
For our dev team, we have a set of batch files set up that can build one or all databases locally from whatever branch they're currently using. That makes it a lot easier to update the local database. The "Publish All" batch file takes a little time to run but is still better than opening each project individually to publish the databases.
Slightly odd issue: I renamed my .xml file to .localdev.xml....file name is "double extension'd" - VS/Datatools looks for ".publish.xml" NOT just the .xml file. In my case I needed "*.localdev.publish.xml". When it had the wrong name the "Set as Default Publish Profile" right click option DID NOT show up, nor did double-clicking...where is Molder when you need him?!?!? ;)
Get the name right, get the right functionality......MS needs better, more creative QA people!! ;)
I have a Installscript MSI project, and I want to disable Global Font Registration inside Install Shield. How can I do this ?
I just have some font files that i copy them to Hard disk where i setup my application but it creates a key in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts.
I dont want it to happen.
There are two ways as far as I've found.
If you have a paid version of InstallShield you can use this method:
http://helpnet.installshield.com/installshield18helplib/mergedProjects/installshield18langref/LangrefDisable00000677.htm
Or, if your application loads font dynamically (like we do, with QT), just rename your font file(s) to .font or something else and then readd them to your setup project. InstallShield won't recognize them as a font and therefore won't register the files.
If you really need them to have the .ttf extension, I would suggest you set a custom action (a .js script for instance) that renames the font file(s) after installation to ttf.
I hope this helps
Cheers