The final change was to update the Upgrade table to includethe Upgrade codes from the two previous versions of Tableau Reader (5.2 and6.1). Thus the changes to implement selfhealing were considered a better match to the packaging requirements. Active Setup was analternative solution to deploying the user content, but it was realised that ifa user started the application before logging out and back in again, theregistration page would be displayed. The vendor MSI was modifiedby transform to add a USER feature as parent to the vendor features, and theUser feature holds a CurrentUser component which deploys the user registry keyscaptured earlier. The information used for registration was copied from the5.2 package, and the HKCU registry keys captured. TableauReader’s first run process asks for user registration information, and this populatesHKCU registry keys. Thiswas a barrier to self healing so the first change implemented was to delete thedesktop shortcut and modify the Start Menu shortcut to be advertised. The vendor MSI does not use advertised shortcuts, in orderto provide support for conditioned shortcut delivery via Property values. HKCR registry key added to advertise file extension: WinSetState("Activate Tableau", "", - Au3Recorder generated code End. RegWrite("HKCU\Software\Tableau", "Configured", "Reg_SZ", "Yes") Local $sval = RegRead ("HKCU\Software\Tableau","Configured") you can use following script to create autoit exe. You can delete msi default shortcut and create our own shortcut pointing to autoit exe. So to avoid that we can also use following. Using active setup the autoit script gives random behaviour if we login as restricted user. #endregion - Au3Recorder generated code End. Local $PID = ProcessExists("tabreader.exe") Run('C:\Program Files (x86)\Tableau\Tableau Reader 8.2\bin\tabreader.exe') Run('C:\Program Files\Tableau\Tableau Reader 8.2\bin\tabreader.exe') Local $Ostype = RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\", "PROCESSOR_ARCHITECTURE") #endregion - Internal functions Au3Recorder End. RegWrite("HKCU\Software\Tableau\Registration\Data", "last_name", "REG_SZ", "XYZ") RegWrite("HKCU\Software\Tableau\Registration\Data", "email", "REG_SZ", "first_name", "REG_SZ", "ABD") RegWrite("HKCU\Software\Tableau\Registration\Data", "country", "REG_SZ", "FR") RegWrite("HKCU\Software\Tableau\Registration\Data", "company", "REG_SZ", "ABC") If Not WinActive($title,$text) Then WinActivate($title,$text) #region - Internal functions Au3Recorder Start -įunc _WinWaitActivate($title,$text,$timeout=0) #region -Au3Recorder generated code Start (v3.3.7.0). #EndRegion **** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #Region **** Directives created by AutoIt3Wrapper_GUI **** Just compile and build following script and use the script exe file. You just need to excute the following autoit script using active setup. I have used active setup to perform this and its working. I have written autoit script to write following regitry keys and suppress the registration window. I have same problem with tableau reader 8.2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |