Is it possible to run the Thinapp Scripts inside virtual machine

I wrote a thinApp script to dynamically create registry keys when the package starts and it seems to work very well. However, it is write key to registry for the host system and not the virtual environment. Is it possible to make the script run in the virtual environment, or alternatively, write to the virtual registry explicitly in a script?

Folling is the code that I use to write the keys.

Void SetStringKey_HKLM (strKeyPath, KeyName, strValue)

c

HEY_LOOCAL_MACHINE = & H80000002 onst

strComputr = '. '.  OReg value = GetOect (twinmgmts:s:mpersonanaonLevel = impersonatate}!
' & strComput & '\root\d\default:StdRegPro) ".

oReg

for example. SetSngVague HKEY_LOCAL_AL_MACHINE, strKeyPateyName, strsalue

End Su

Void

JohnFx, you'll need to edit your registry hive files text ThinApp project (one or both depending on the registry keys, you change your script) to add key of parent of parameters with ISOLATION_WRITECOPY or ISOLATION_FULL to the header of the line of registry keys.

For example, if I write mods to the HKLM\SOFTWARE\VMWARE key with a script, and I want these values to be stored in the sandbox of my package ThinApp vs the native of the system registry, I need to change the HKEY_LOCAL_MACHINE. TXT file and make sure that the parent (HKEY_LOCAL_MACHINE\SOFTWARE\VMWARE) key is present in the file registry hive with a value of ISOLATION_WRITECOPY (in which case I would like to see what is on the native as well as what I write to the virtual registry hive) or ISOLATION_FULL (if I don't want my application to make the virtual registry settings and do not see what is in the system) Native).

Alternatively, you can also try the following in your PACKAGE. INI:

Read the docs for more information on the above online (see link below).

-Dean F.

http://pubs.VMware.com/thinapp4/help

Tags: VMware

Similar Questions

  • Is it possible to run the command script with user account administrator rights?

    Is it possible to run the command script with administrator user account rights means please tell me how to...

    I need to run it in windows 7 professional service pack 1.

    There are a few myths that won't go away, for example

    • You can perform administrative tasks when you are working from a command prompt.
    • A script (batch file, VBScript, PowerShell) gives you administrative rights.

    There is no substance to a myth. Your account has administrator privileges, or it does not. There is no backdoor.

  • If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds?

    Hello

    If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds? Or is it keep held locked blocks even after aggregation for this block is over?

    For example if I correct sparse dimensions Forecast, FY15, dec.  and my accounts dimension is only dense, after calc has my senior level members in the accounts, it it will issue after updating (i.e. in fractions of seconds) or is agg keep it held in a lock?

    I ask because I want to run scripts tot., but there is the update of our cube users.  I never had a problem to start agg, while users are updating.  But maybe I am lucky.  If a user updates a closed block, they will receive an error message that I think.  They may try to update again after a few seconds, I hope.

    Thank you.

    Locking behavior for BSO Essbase is described in the database administrator's Guide: http://docs.oracle.com/cd/E57185_01/epm.1112/essbase_db/dstinteg.html

    It is certainly theoretically possible that a user can obtain a lock because of a calc, although I can't say I saw him be a problem in real-world applications (perhaps because access uncommitted is the default).

  • Compensation of the sequences, run the sql script

    Hello

    I use OWB 10.1.0.4.0 and I use a sequence to create a surrogate key in my paintings. For the tabels deleted during the process, I want these sequences set to 1 again.

    Is it possible to run an sql script in a mapping or the flow of process (with a drop, create, grant the declaration for the sequence)?

    Thanks in advance,

    Arjan

    Write these SQL statements in a procedure and the procedure in the import map.

  • Is it possible to run the restore of the system from a command prompt?

    Plug;

    Dell Studio 540 Quad core 3, 2 GHz (don't remember exactly?) processor

    Ram 8BG

    Windows Vista Edition Home Premium

    In general, everything was working fine until I ran the auto update for Vista. I don't know exactly which updates made it crash (that's the downside to update automatic, I guess?), but what happens is;

    PC powers up correctly, and everything seems to be in order up to and including the connection procedures. Once connected, the first error message pops up saying: "Windows Explorer" is not working properly and has restart. This will make a loop again and again, and as long as the error is running, I'm not able to perform all actions either. The only thing I am able to do, is to run the Task Manager, but if I try to run applications, programs or processes there, the Task Manager itself is in need of a reboot. So, basically, the only action I can perform the Task Manager is turn off the PC safely.

    Helps out;

    Ran memory diagnostics, no error found.

    I ran system restore, not detected no results. (....) According to me, if I could run Vista system restore as soon as Windows Explorer is stable, I can choose a restore point prior to the restoration defined point in chest upward and it will solve the problem.

    I ran the repair of the system, but the PC does not recognize a problem, according to the definition, the start sequence works as it should.

    I ran the security modes to see if I can access previous system restore points, but like windows explore does that no action can be taken. It's the safe mode; Base drivers and base with network connection drivers.

    I ran the command line safe mode, that works very well, but don't really know what I can do from there.

    I have the option to reinstall the OS, but I hope a response must be made of this? My thought is;

    Is it possible to run the restore of the system from a command prompt? And if so, where is the path, finally, what should I do?

    This starts the system restore
    %systemroot%\system32\rstrui.exe
     
    Download http://www.nirsoft.net/utils/shexview.html
    Disable all non-microsoft shell extensions (to explore) and reactivate a
    by so this can help.
     
    --
    ..
    --
    "Arefare" wrote in message news: f6b7f70f-b8a0-4291-ae95-92a4d659f16a...
    > Care;
    >
    > Dell Studio 540 Quad core 3, 2 GHz (don't remember exactly?) processor
    >
    > Ram 8bg
    >
    > Windows Vista Edition Home Premium
    >
    >
    >
    > In general, everything was working fine until I ran the auto update
    > for Vista. I don't know exactly what updates does plant (it is
    (> the disadvantages of the automatic update, I guess?), but what happens is;
    >
    > PC powers up correctly, and everything seems to be in order until.
    > and including connection procedures. Once connected, the first error message
    > comes up saying "Windows Explorer" is not working correctly and to
    > restart. This will make a loop again and again and while the error message is
    > ongoing enforcement, I'm not able to perform all actions either. The only thing
    > I am able to do, is to run the Task Manager, but if I try to run a
    > applications, programs, or processes, the Task Manager itself needs
    > a reboot. So, basically, the only action I can perform the Task Manager is
    > turn off the PC safely.
    >
    >
    >
    > Helps out.
    >
    > I ran memory diagnostics, no error found.
    >
    > I ran system restore, not detected no results. (....) I think that if I could
    > run Vista system restore as soon as Windows Explorer is stable, I can
    > Choose a previous restore point as the restore point defined in boot up
    > and it will solve the problem.
    >
    > I ran the repair of the system, but the PC does not recognize a problem, as in
    > definition, the start sequence works as it should.
    >
    > I ran safe mode to check if I can access previous system
    > points of restoration, but as windows explore does not perform any action can be
    > catches. It's the safe mode; Base drivers and base with network drivers
    > connection.
    >
    > I ran the command prompt in safe mode, which works very well, but don't really know
    > what I can do from there.
    >
    >
    >
    > I have the option to reinstall the OS, but I hope a response is to
    > do this? My thought is;
    >
    > Is it possible to run the restore of the system from a command prompt? And if so, where
    > is the path to him, finally, what should I do?
    >
     
     
  • Run the PLSQL Script from Batch file

    I am trying to run a PL/SQL script in a batch file in sp1 Windows 7 Prof

    N ° 1) I wrote a simple PL/SQL script:

    --

    -The scope of variables

    --

    DECLARE

    v_sal number (7.2): = 50000;

    v_comm number (7.2): = v_sal *. 20;

    v_message varchar2 (100): = 'eligible for the commission;

    BEGIN

    declare

    v_sal number (7.2): = 50000;

    v_comm number (7.2): = 0;

    v_total_comp number (7.2): = v_sal + v_comm;

    Start

    v_message: = "not committed not" | v_message;

    dbms_output.put_line (' message of sub-block is ' | v_message);

    dbms_output.put_line (' subblock v_comm is ' | v_comm);

    end;

    v_message: = 'seller '. v_message;

    -dbms_output.put_line ('Main block v_total_comp' | v_total_comp); -Error: not visible in the main block

    dbms_output.put_line ('Main block v_comm' | v_comm);

    dbms_output.put_line (' main block message is ' | v_message);

    END;

    /

    Step 2) then I wrote a simple batch TstBatch.bat file

    sqlplus scott/tiger@orcl < PLSqlVarInputTst1.sql > > TstBatch.log

    Step 3) in the BACK of cmd, I tried to run TstBatch.bat

    C: > TstBatch.bat

    The log file tells me that I have connected to Oracle Database 11 g Enterprise Edition Release...

    Then a lot of SQL > SQL > SQL >... 26 times

    Procedue of PL/SQL completed successfully.

    Disconnected from Oracle database

    I also tried running the PLSQL script in SQLPlus:

    SQL: > @PLSqlVarInputTst1.sql

    Tell me the procedure completed successfully.

    QUESTION: So, where is the output of the PL/SQL script?

    Hello

    You must activate the output: Add the following line at the beginning of your PL/SQL script:

    SET SERVEROUT ON

    ...

  • Keyboard shortcut to run the last Script?

    Anyone know of a keyboard shortcut to run the last script that was executed? I'm editing an animation and wrote a script that writes code based on it, and I need a quick way to run it without the open file dialog box.

    Thank you!

    Method 1:

    You can assign shortcut keys to the first 20 scripts listed under the file > Scripts menu via the file «Adobe after effects 10.5 shortcuts» Just search for "ExecuteScript' in the shortcuts file find the section.

    Method 2:

    You can use ft_ToolBar which allows to launch scripts with the click of a button. You can also create a new button and just paste your script code directly in the window provided without having to create a jsx/jsxbin file.

  • Elements 4.0: run the postflight script fails

    I ALMOST built Elements 4.0 as root on Mac OS 10.5.6 successfully (CPU PPC G5).  Towards the end of construction, I see 'missing file' then 'cannot run the postflight script.

    Any ideas?  Thank you.

    http://forums.Adobe.com/community/photoshop_elements

  • Need a script to disable the copy/paste in virtual machines

    Need a script to disable the copy/paste in virtual machines

    =================

    Begin {}

    $disableCopy = "isolation.tools.copy.enable".
    $disableCopy_value = "false".
    $disablePaste = "isolation.tools.paste.enable".
    $disablePaste_value = "false".
    $disableGUI = "isolation.tools.setGUIOptions.enable".
    $disableGUI_value = "false".
    }

    {In process
    #Make of course, it's a virtual machine
    If ($_ - isnot [VMware.VimAutomation.Client20.VirtualMachineImpl]) {co continue}

    #Setup our object
    $vm = get-view $_. ID
    $vmConfigSpec = new-Object VMware.Vim.VirtualMachineConfigSpec
    $vmConfigSpec.extraconfig += new-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig += new-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig += new-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig [0]. Key = $disableCopy
    $vmConfigSpec.extraconfig [0]. Value = $disableCopy_value
    $vmConfigSpec.extraconfig [1]. Key = $disablePaste
    $vmConfigSpec.extraconfig [1]. Value = $disablePaste_value
    $vmConfigSpec.extraconfig [2]. Key = $disableGUI
    $vmConfigSpec.extraconfig [2]. Value = $disableGUI_value
    #Run change
    $vm. ReconfigVM ($vmConfigSpec)
    }

    =================

    The script above did not work. This script must run on VMs specified in a cluster that is mentioned.

    As long as vmhgfs is not installed in your virtual machines during the installation of the tools in 5.0, copy and paste between virtual machines is not enabled by default

  • Get the name of the host that a virtual machine is running, rather than the host ID

    Hello

    Looking for a little help, I question the result of a get - vm of the. Run to find the name of the host to a virtual machine runs on. All I seem to get is the host id that is a number.

    Y at - it an option in the GET - vm, which displays the name of the host, or is it possible to remove the name of the host from the value of the provided host id.

    What I want to do is the following:

    Enter a name for the virtual machine, hop on the host his race, ask the host for its groups of ports available, introduce an option of these groups of ports and when you enter the name, set the Group of ports of entry. Without the actual host name I can't find it.

    $selectedVM = read-host "enter the name of the VM.

    $vm = get - vm $selectedVM | Get-opinion

    $runhost = $vm.runtime.host

    $portgroups = get-virtualportgroup - VMHost $runhost

    'Port available to connect groups '.

    $portgroups

    $selectedPG = read-host "enter the port group name.

    $netadapters = get-networkadapter - VM $selectedVM

    ForEach ($netadapter to $netadapters)

    {

    all-NIC - NIC NetworkName $netadapter - $selectedPG - StartConnected: $TRUE - confirm: $false

    }

    Any help on this would be really appreciated.

    Thank you

    Dan

    Hi Dan,.

    You can retrieve the host name by using the Get-VMHost cmdlet

    $selectedVM = read-host "Enter VM Name"
    $vmhost = Get-VMHost -VM (Get-VM -Name $selectedVM) | Select-Object Name
    $runhost = $vmhost.Name
    

    Hope this helps

  • MAC address: Is it possible to change the MAC address of a machine & also if there is a way to see the physical address of the machine on the other to see through the command line...?

    Is it possible to change the MAC address of a machine & also if there is a way to see the physical address of the machine on the other to see through the command line...?

    Is it possible to change the MAC address of a machine & also if there is a way to see the physical address of the machine on the other to see through the command line...?

    Yes.

    Yes.

    Of course - you use 'other/unknown', then...?

    (Google for "MAC spoofing").

  • VMware Fusion 6 Professional - where is the possibility of locking VMware using a single virtual machine and do not allow the creation of new virtual machines?

    This is a quote from the VMware Fusion Professional 6 product page:

    VMware Fusion 6 Professional comes with IT administration tools to help you deploy VMware Fusion using Apple or a management solution third Mac as of JAMF's Casper Suite. Further reduce the cost of support of Windows desktop using the mode of single virtual machine that limits user access to the library of the Virtual Machine, the ability to create virtual machines or migrate PCs and reduces the options of the menu.

    Where can I find these IT administration tools?  I want to block my VMware users to a single virtual machine so that they can not blow by creating new virtual machines, etc.

    How can I do this?

    Thank you!

    Glitch004,

    You could follow the steps to activate the single mode of VM:

    1. turn power off all running VMS and out the merger.

    2. Add the following line to/Library/Preferences/VMware Fusion / config

    installerDefaults.simplifiedUI = 'TRUE '.

    3 restart merger and you will find:

    . VM library is hide in the VM menu.

    . only one virtual machine can be used, while click second VM Fusion of the reports ' Unable to open document. "

    Best regards

    Shanghai

  • Can join a Cluster of storage disk out of Maintenance DTS Mode to set up the profiles for a virtual machine storage policies?...

    Can join a Cluster of storage disk out of Maintenance DTS Mode to set up the profiles for a virtual machine storage policies?...


    IE can you define the rules of affinity DTS depending on how the rules of storage of profiles are configured for a virtual machine?

    In my mind it seems there is disconnect from the DTS and storage profiles.

    Thank you.

    = NOTE =.

    My lab at home, 2 organizes running ESXi 5.0

    Dv01 has

    Of startup vmfs 7200 RPM 160 G = dv01-BOOT

    Vmfs 1 TB 7200 RPM = VM02-VMFS

    VM02 has

    Of startup vmfs 7200 RPM 160 G = VM02-BOOT

    Vmfs 1 TB 7200 RPM = VM02-VMFS

    Vmfs 5900 RPM 2 TB = VM02-TV01

    I have (3) facility profiles of storage using 'User-defined storage Capablity' as shown below:

    (160 @ 7200 RPM SATA) boot > Boot

    Fast (160 7200 RPM SATA and 1 TB @ 7200 RPM SATA) > fast

    Slow (2 TB @ 5900 RPM SATA) > slow

    Then, I set up a storage Cluster with my local disks on dv01 (only to date)

    LocalVM disc dv01-BOOT and dv01-VMFS disk of the 'cluster of storage.

    I have a computer virtual called DC01 (HardDisk1) want to live on 'Boot' profile storage drive
    His "Non-compliant" poster according to the storage profile, it should run on drive 'boot' on dv01

    To get to this point, I put the StorageCluster in Mode of Maintenace 'DTS' and forced a sVmotion of all virtual machines off dv01-BOOT

    No disks are IO or claim of space.

    But once I take the 'DTS Maintenacne mode' STARTUP dv01 floppy is now get the DTS to return him to satisfy the storage profile (rule) I install... IE do the 'storage profile' VM complient (without doing a few externall API, the PS script or the 3rd party software calls)... ??

    Seems weird it is (or may be) such disconnection of a memory of the profiles and the StorageClusters and the DTS?

    Thank you...

    At this point, I think that storage DRS and storage profiles are two technologies to separate and work independently, but what you suggest is a great idea-

  • Question about the size of my Virtual Machine

    I'm on Fusion 3.1 (and Windows XP in Fusion on a MacBookPro Leopard). I put my Windows Virtual Machine to be 40 GB size but I just ran OmniDiskSweeper and it shows that the virtual machine takes 53 GB. I see the same size in the Finder.

    Two questions: first, how is it possible for the virtual machine to limit growth, I gave him? Second, is there a way for me to downsize (safely). I did not quite in the virtual machine (mainly my installation of Windows) and a handful of programs so it's weird that she's so big.

    I have disabled Auto-protect.

    I have two snapshots, one of when I first set up the virtual machine and one of very recently. I once had a bunch of other photos but I deleted them. I mention this because I read in another thread that "orphan" instant can hang out somewhere but I don't know where to look to see if this is the reason for the growth of my virtual machine.

    Thanks a lot for your suggestions.

    Abe Z.

    AMZ1 wrote:

    One thing I didn't get your last answer: if snapshots are not backup, and the creation of a snapshot causes the basic disk that you want to stop growing, which are good for snapshots? Or in other words, your response, it looks like I should stop creating snapshots, Yes?

    In which case I should rely only on periodically manually save the virtual machine by copying in the Finder on an external drive?

    What I said was "Snapshots are not backups in the traditional sense of the word and should not be relied upon as such either." However, using clichés absolutely has merit and value but how to use them effectively and efficiently seems to escape most of the users.  As a general rule, I treat a not different Virtual Machine and a physical Machine, then when it come to back up the user data and the ability to quickly restore the entire construction as well as user data.  I use snapshots mainly for short periods of time, and then either delete them when I don't want to lose changes made along the way, or if I go back to a previous snapshot.  For example, I can run on a given snapshot and say a single snapshot for a week and if all was well I'll delete it and take another or if I need to do something that could end up with bad results I'll take a snapshot to do what I do and if I have a problem just go back to the previous snapshot or the basic disk as appropriate.  The trick is user data constantly backed up out of the Virtual Machine itself, as well as at some point in time I never have to worry about the State of and reason for any data or instant and what action I might have to or want to take.

    There are many other cases workers scenarios about how/when to use snapshots and it was just a bit of food for thought because I don't have time now to get deeper into it but the snapshots are a good thing to use as and when necessary, but do not count on them to replace the traditional methods/methodologies for backup/recovery of data user or any backup/restore system but use then as a another tool in the digital Toolbox.

  • The former "cannot change the power state of virtual machine: the process has exited with an error: end of the error message" thing again (Fedora 8/Server 1.08)

    OK, this problem beautifully undescriptive I've seen caused by what seems to be dozens of things happening for me.

    I made the mistake of horrible update my FC8 kernel to the latest one (2.6.26.8 - 57.fc8).  Mind you, that's all that's changed.  It was with a 1.06 server with happiness and perfectly good computers running virtual in use before the upgrade.

    After the new kernel and reboot, I had to rebuild vmmod.  I had to get a fix of any - any later that I used with my previous kernel (116 does not solve the problem of compiling) so I used all-any117d.  Update like a champion.

    Try to turn on a VM and Ihanta!, the above error.

    Nothing else was changed.

    I tried the upgrade to VMware Server 1.08.  Used all-new any117d - update OK.

    Error again.

    I have re-run the compilation, this time to say 'yes' to what the installation script to "adjust the permissions of all virtual machines in xxxlist" or whatnot.

    Error again.

    1. status of /etc/init.d/VMware

    Networking networking on/dev/vmnet0 is running

    Invited only on/dev/vmnet1 network is running

    Network invited only on/dev/vmnet8 is running

    NAT networking on/dev/vmnet8 is running

    Responsible vmmon module

    Loaded module Vmnet

    FWIW, I compile as long as root, but have always run VMware server from my UID nonroot.

    What now?

    I'm in the same boat.  Fedora 8 2.6.26.8 - 57.fc8 #1 SMP

    I have tried uninstalling/reinstalling v1.0.6 thru 1.0.8 with all 116 updates and 117d.   117D compiles with every version of server but when I try to turn on a virtual computer I get this error.

    Cannot change the power state of virtual machine: the process has exited with an error:

    vmxvmdb: name of the Index generated by the configuration file

    POST (no connection): Version mismatch with vmmon module: expected 138.0, obtained 168.0.

    You have a bad version of the module kernel "vmmon.

    Try reinstalling VMware Server.

    POST (no connection): failed to initialize the surveillance apparatus.

    Failed to initialize the virtual machine.

    End of the error message.

    I found several posts other people have this problem but

    they are months with no recent activity and nothing that solved the problem.  I found appeared

    to get a fix, one updated the all an update that corrects the problem for

    2.6.26 performing several nuclei, but the link for the update on TI-psycho appears to be dead.  Here is the link to the discussion

    http://Fedoraforum.org/Forum/showthread.php?t=199026&page=2

    Of course, I would like to know how to solve this problem as well.

    Thank you

Maybe you are looking for