I have inherited an installscript project which asks the user if they want a desktop shortcut. The script creates the shortcut, but Windows gives it a default icon rather than the icon specified. When you look at the properties of the shortcut, the correct icon is displayed.
I see on this page the following:
"The shortcut target must be present on the target system before AddFolderIcon can be called." And I'm wondering if that's the cause of the issue.
The installscript is creating shortcuts in the OnFirstUIBefore() function. Do we need to instead create these shortcuts in the OnFirstUIAfter() function, after the executable has been copied to the user's machine? And if so, do we need to delay that dialog which asks them if they want the shortcut, or is there a way to save those answers until we get to that function?
I don't recall seeing an install which copies files and then asks you more questions about shortcuts.
We are using Installshield 2012 Spring if that is relevant at all.
FWIW I gave up and decided to create the shortcuts using the installation designer. Now they function correctly; however the install dialogs no longer ask the user if they want the shortcuts.
Related
I just installed WIX 3.10 and I'm using VS 2012 Ultimate. I have then successfully added a WIX setup project to my solution but that's about as far as I can go because the WIX menu is not showing up. The commands buttons that should appear at the top of the solution explorer window does not appear, neither does the shortcut button that appears just below the 'clean' button when you right click the project. I have tried uninstalling and restarting my PC several times but still the same.
snap shot of the solution explorer window.
I'm obviously missing something, but what? Thanks very much.
The designer you're looking for is from a 3rd party commercial product:
https://www.add-in-express.com/wix-designer/index.php
Normally one would write most Wix files by hand. It's relatively simple XML and the documentation isn't bad.
You can install the extension: Tools -> Extensions and Updates
Then in the search box type 'wix' and Enter.
The extension name is 'Designer for Visual Studio Wix Setup Projects':
I created a new file (with .frag extension) within Android Studio, and a window "Register New File Type Association" popped up. I wasn't paying attention and I selected "Open matching files in associated application" which now makes it so any time I try to open a *.frag file it opens in Gedit (which I had open at the time of the file creation). I checked file types in Settings but I didn't see an option to change the association definition. I want my *.frag files to open in Android Studio.
register-new-file-type-association-dialog
I just made the same mistake.
Go to Setting
write 'file types' on the search box
select the 'File types' under 'Editor'
find the one you assigned and delete it.
I ended up setting Android Studio back to default settings using this link: Reset Android Studio settings to default setting on linux
Hi I'm trying to teach myself c++ but I can't even get the most important feature to work. The build/compile button won't show. Its grayed out. I only want to use visual studios because its what all the devs use in my friends company where I want to work. So, any way to get this thing working? This is Visual Studios 2013, I've tried the profile changing feature in attempt to fix it but it still shows up as grayed out and I can't use it. I have made no other changes since installing it.
Also to start my code I did file> new> file> C++ file
Thanks for any help.
Visual Studio relies on projects, so you need for your source file to be part of a project - this would also hold all the configuration for compilation and linker settings, analogous to a *nix style Makefile.
To create a new project, Do File > New > Project... And choose a suitable template from under the Visual C++ section. Typically, if you're just starting out, and only want to work with the console, then you'll probably want to choose "Win32 Console Application" as the project type.
I arranged my Android Studio IDE tool windows layout to fit 2 screens in a dual monitor setup and saved it as the default. I would also like to save another layout for single screen setup.
Question: Is it possible to save multiple layout configuration for tool windows in Android Studio. If so how?
Thanks,
George
Go to menu window > Store current layout as default
A bit late to the party, but there is a newer plugin, that works much better imho.
You can define 4 layouts, it can switch layouts immediately, it also (re-)stores the floating state of each panel and so on:
https://plugins.jetbrains.com/plugin/13005-window-layout-manager
There is an IntelliJ IDEA plugin preserve-layout-plugin that allows you to that. It's available in the plugin repository, just search for preserve.
By default, you need to restart the IDE or open another project in order to load the layout but the following works as well: you import the layout, you store it as default, and then you restore the default layout.
The following method helped me.
1) Run Android Studio as administrator.
2) Now, arrange the tabs as you want.
3) Go to Window->Store current layout as default.
This is something I missed when I started Android development especially after using multiple layout in Unity Editor before this.
However, I found this plugin - "Window Layout Manager" Link which you can also find and install via Android Studio plugins marketplace.
Allows you to arrange different windows/components like terminal, logcat, project explorer etc and save it with a name.
I have Visual Studio 2012 Ultimate and I've downloaded the Visual Studio 2012 ISO from MSDN.
When trying to install the documentation:
I open Visual Studio as an Administrator
Follow these instructions as per the install's ReadMe file
On the menu bar for Visual Studio 2012, choose Help, Add and Remove
Help Content.
Help Viewer 2.0 starts, showing the Manage Content tab.
On the Manage Content tab, choose the Disk option button, choose the
Browse (…) button, and then navigate to the DVD drive.
Choose the helpcontentsetup.msha file, and then choose the Open button.
Under Available Documentation, the list of available content sets from the
DVD appears.
Choose the Add link next to the content set that you want
to install onto your local computer.
The items that you specify appear
in the Pending Changes column. You can remove an item from the Pending
Changes column by choosing the “X” next to the item.
Choose the Update button.
And click Update.
When I click Update, it progresses for about 3-4 seconds, and then it fails with an error:
The following errors occurred while performing the requested tasks:
An error occurred while updating content. You have insufficient
privileges to complete this task.
How can I resolve this issue?
Update
I'm running Help Viewer in Admin mode.
try this. It solved my problem.
change security permission of vs2012doc.iso to full control for your account.
Mount it
Install the documentation ONE BY ONE. Remember ONE BY ONE.
Might it help...
Change your machine date and try again. In my case work with "oct/01/2012".
This was using the Visual Studio 2013 but is likely to be similar to the help of Visual Studio 2012 and probably 2015. I have not tried it so you tell me.
I got the ISO with the help of vs2013 to Microsoft directly. Now I do not remember the address so I did not put it here. It is very easy to get around with google looking for.
When I'm using the Microsoft Help Viewer 2.1 with local installation way I get an error: Insufficient Privileges and not the books are installed.
What I will describe is possible for you to do so more easily. But I could not validate it and then they describe the steps I followed to do so.
The first thing I did was copy the entire contents of the ISO to a folder on my HDD for my comfort my case was in C:\T
With the command prompt navigate to the folder where it was copied from the iso content and the C:\T\Packagesrun the following winrar t * .cab
This causes a test winrar make all cab files and protest whenever any of them is corrupt.
This was to score those files that had to go down again, in my case only had a .cab file with problems
v2Visual_Studio_2011_NET_Framework_4_B1545_VS_100_en-us_13(b0ba5cce-2b72-f582-80f3-8a6165ef6b9b).cab
The following was download it directly from Microsoft in this direction,
http://packages.mtps.microsoft.com/v2Visual_Studio_2011_NET_Framework_4_B1545_VS_100_en-us_13(b0ba5cce-2b72-f582-80f3-8a6165ef6b9b).cab
All other packages I think are there too.
The next thing was to replace the damaged file with the new and final step is to go into the folder where the files of the Visual Studio Help are, in my case I always use to put this folder in a comfortable place for me.
D:\VS_2012_2013_HLP\VisualStudio12
Inside this folder there are other two \Incoming\Cab, we must ensure that the cab folder is completely empty.
The last thing is to enter the Microsoft Help Viewer 2.1 and say that the new power plant is one where we copy the contents of the ISO (D:\T\helpcontentsetup.msha). The rest is just install the books ..