How to suppress unneeded InstallShield InstallScript MSI dialogs? - dialog

I have an InstallShield 2009 'InstallScript MSI' project which shows 2 dialogs which are not necessary in my installation:
Customer Information
Setup Type
How can I disable those 2 dialogs? Under 'User Interface', the 'All Dialogs' tree lists those dialogs, but they are all grayed out, and cannot be disabled or changed.

For InstallScript MSI (and for that matter, InstallScript) setups, you control which dialogs are shown by going to the InstallScript view. Insert the OnFirstUIBefore event by fiddling with the dropdowns at the top. Then figure out the pattern of gotos and which dialogs are shown, and rewire it to skip these dialogs. Generally the functions that show dialogs are named with the prefix Sd.

Namely - you can not to delete a dialogue.
But you can to hide it
For this, in the perameters of visibility of whole of unwanted dialogue window you need to change it from "visible" to "hidden".
Profit!

Related

Modules in Project Explorer are not grouped anymore into modules, classes and forms

Modules in MS Office Project Explorer have always been grouped into forms, modules and classes, with "pluses" that allow to collapse or expand the groups. Either I have pressed some random hotkey, or the latest MS Office update messed it up, BUT now all my modules are just a list sorted by name (see the screenshot). It's the same in all Office programs. What has happened, and is there a remedy to this? I want my groups back :-(
I looked through all settings in VBA Editor, but I never found anything related to the problem.
Press the Toggle Folders button in your Project Explorer:
Alternatively use the Toggle Folders button in the context menu of the Project Explorer.

Dynamics CRM 2011 disable jewel menu item

I want to disable "Save --> Save & New" menu item in jewel menu. In Customizations.xml file, I added below line. But "Save --> Save & New" menu item is still show in the menu.
<HideCustomAction HideActionId="Mscrm.Jewel.SaveMenu.SaveAndNew.HideAction" Location="Mscrm.Jewel.SaveMenu.SaveAndNew"/>
How can I resolve this issue ?
Are you sure you added that line to the correct DiffXML (and save and published after importing the modified solution)? You may have done that within one entity, which would cause that one entity's menu to no longer have save and new. I also usually see the entity name within the location, I don't see it in yours.
Use the Ribbon Workbench if you are having issues modifying the ribbon or sitemap or a variety of other 3rd party point-and-click solutions. Stay away from the DOM as it is unsupported.

visual studio 2010 not opening projects

i just installed visual studio 2010 and it is not opening any projects .I can make projects but i can not add any file in it and also it is not opening recent projects.
I am stuck here , kindly cooperate with me!
OK, sounds like the installaion got munged up.
first obvious questions: do you have any code that has actually been saved?
If "yes," copy that code to an alternate location, and use the simplest solution: use the Windows Control Panel to deinstall the MSVC instance and reinstall. If no code saved, just de-install and reinstall.
That's the obvious answer. You may also check the location for the project files, and the settings Visual Studios uses.
from the toolbar, click "tools".
From the drop-down list select "options"
Within the displayed list, scroll down to "projects and solutions"
expand that list (click on the little "+" box)
3 locations will be displayed.
Make sure you have write permission to all three locations
all the check boxes should be selected. Especially the one marked "save new projects when created"
click "OK" to accept the changes

how to show EULA during upgrade using installshield

the EULA window is enabled through the Interview panel in Installshield 2011, and it works fine when installing the program first time. However, it won't show in the dialog sequence when we do the upgrade.
I guess it is a default behaviour in Installshield, is it possible to show it all the time? is it wise to do so?
You can Launch Eula window (License Agreement dialog) or custom dialog anytime you want.
When upgrade, launch Eula Dialog from NextButton on SetupResume Dialog, move another conditions to Next Button Eula Dialog, if using License Agreement dialog you must add another conditions "Not Installed" to old Eula Dialog conditions
Next Button Events For License Agreement Dialog will be like this:
Event: NewDialog,
Argument: LicenseAgreement,
Condition: Not Installed
Event: EndDialog,
Argument: Return,
Condition: OutOfNoRbDiskSpace <> 1 AND Installed
Next Button Events For SetupResume Dialog:
Event: NewDialog,
Argument: LicenseAgreement,
Condition: 1
I ran into this problem rather recently with InstallShield 2014, and was having a hard time getting the EULA to pop up on the automagic upgrade path even when adding it to the Next button of the SetupInitialization dialog.
I did find a way to make it happen though:
Go into the Behavior and Logic group, select Custom Actions and Sequences. Expand Sequences > Installation > User Interface.
You can right-click and Insert objects into here. From the Insert Action dialog, select Dialogs in the first dropdown. Then select the EULA-displaying dialog (LicenseAgreement in my case). That will insert it into the UI portion of the Installation Sequence.
From there, you can drag it to where you need it. I dropped it in right after SetupInitialization, but you can also drag it down to just after the PatchWelcome / InstallWelcome / SetupResume / MaintenanceWelcome UI components.
If you do this, you'll want to go to your InstallWelcome dialog (normal installation) and make sure that you skip the EULA there in order to avoid showing it twice. Setting the target to ReadyToInstall (the next step of the LicenseAgreement in my case) allowed me to do that.
That said, doing this means that the EULA will come up every time the installer runs. Ensure that this is what you really want to do.

How to Remove Visual C++ "Expand Menu" Arrow?

When creating menus with submenus in Visual C++, I find that submenus begin as arrows that I must click to expand to see their contents. Is there a way (programmatically) to have the submenus pop-out already expanded (with no arrow to click)?
Here is an image of what I am talking about, before and after clicking aforementioned arrow:
also here
it seems you are using the MFC Feature Pack.
Go to CMainFrame::OnCreate(), you should be able to find
something like
CMFCToolBar::SetBasicCommands(lstBasicCommands);
somewhere inside it.
lstBasicCommands
is a list that holds all the menu items that are not be hidden initially.
Simple populate it with the items you like.
You may also want to check out the samples code available here:
C:\Program Files\Microsoft Visual Studio 9.0\Samples\1033
In case you do not call SetBasicCommands and do not create the list, the expand button is removed. This releases you from enhancing the list everytime you add a new command.

Resources